<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/of/platform.c, branch v3.0.56</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/of/platform.c?h=v3.0.56</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/of/platform.c?h=v3.0.56'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2011-03-23T20:55:56Z</updated>
<entry>
<title>dt: eliminate OF_NO_DEEP_PROBE and test for NULL match table</title>
<updated>2011-03-23T20:55:56Z</updated>
<author>
<name>Grant Likely</name>
<email>grant.likely@secretlab.ca</email>
</author>
<published>2011-03-18T16:21:29Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=1eed4c077c31450bfcd0249aebb21d96fc5d5d3c'/>
<id>urn:sha1:1eed4c077c31450bfcd0249aebb21d96fc5d5d3c</id>
<content type='text'>
There are no users of OF_NO_DEEP_PROBE, and of_match_node() now
gracefully handles being passed a NULL pointer, so the checks at the
top of of_platform_bus_probe can be dropped.

While at it, consolidate the root node pointer check to be easier to
read and tidy up related comments.

Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>dt: Refactor of_platform_bus_probe()</title>
<updated>2011-03-23T20:55:55Z</updated>
<author>
<name>Grant Likely</name>
<email>grant.likely@secretlab.ca</email>
</author>
<published>2011-03-18T16:21:28Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=38e9e21dac33082f0440d24aefb3466bb18bfed6'/>
<id>urn:sha1:38e9e21dac33082f0440d24aefb3466bb18bfed6</id>
<content type='text'>
The current implementation uses three copies of of basically identical
code.  This patch consolidates them to make the code simpler.

Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>dt: eliminate of_platform_driver shim code</title>
<updated>2011-03-01T16:38:26Z</updated>
<author>
<name>Grant Likely</name>
<email>grant.likely@secretlab.ca</email>
</author>
<published>2011-02-23T03:22:44Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=d714d1979d7b4df7e2c127407f4014ce71f73cd0'/>
<id>urn:sha1:d714d1979d7b4df7e2c127407f4014ce71f73cd0</id>
<content type='text'>
Commit eca393016, "of: Merge of_platform_bus_type with
platform_bus_type" added a shim to allow of_platform_drivers to get
registers onto the platform bus so that there was time to migrate the
existing drivers to the platform_bus_type.

This patch removes the shim since there are no more users of the old
interface.

Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>dt/powerpc: move of_bus_type infrastructure to ibmebus</title>
<updated>2011-02-28T08:36:38Z</updated>
<author>
<name>Grant Likely</name>
<email>grant.likely@secretlab.ca</email>
</author>
<published>2011-02-17T07:26:57Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=710ac54be44e0cc53f5bf29b03d12c8706e7077a'/>
<id>urn:sha1:710ac54be44e0cc53f5bf29b03d12c8706e7077a</id>
<content type='text'>
arch/powerpc/kernel/ibmebus.c is the only remaining user of the
of_bus_type support code for initializing the bus and registering
drivers.  All others have either been switched to the vanilla platform
bus or already have their own infrastructure.

This patch moves the functionality that ibmebus is using out of
drivers/of/{platform,device}.c and into ibmebus.c where it is actually
used.  Also renames the moved symbols from of_platform_* to
ibmebus_bus_* to reflect the actual usage.

This patch is part of moving all of the of_platform_bus_type users
over to the platform_bus_type.

Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>of/device: Don't register disabled devices</title>
<updated>2011-01-03T23:02:49Z</updated>
<author>
<name>Grant Likely</name>
<email>grant.likely@secretlab.ca</email>
</author>
<published>2011-01-03T22:51:11Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=cd1e65044d4473cca9a01bae7b7938f065044a4b'/>
<id>urn:sha1:cd1e65044d4473cca9a01bae7b7938f065044a4b</id>
<content type='text'>
Device nodes with the property status="disabled" are not usable and so
don't register them when parsing the device tree for devices.

Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
Cc: Hollis Blanchard &lt;hollis_blanchard@mentor.com&gt;
Cc: Deepak Saxena &lt;deepak_saxena@mentor.com&gt;
Cc: Scott Wood &lt;scottwood@freescale.com&gt;,
Cc: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
</content>
</entry>
<entry>
<title>of/device: Rework to use common platform_device_alloc() for allocating devices</title>
<updated>2010-10-21T17:10:10Z</updated>
<author>
<name>Grant Likely</name>
<email>grant.likely@secretlab.ca</email>
</author>
<published>2010-10-20T17:45:13Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=7096d0422153ffcc2264eef652fc3a7bca3e6d3c'/>
<id>urn:sha1:7096d0422153ffcc2264eef652fc3a7bca3e6d3c</id>
<content type='text'>
The current code allocates and manages platform_devices created from
the device tree manually.  It also uses an unsafe shortcut for
allocating the platform_device and the resource table at the same
time. (which I added in the last rework; sorry).

This patch refactors the code to use platform_device_alloc() for
allocating new devices.  This reduces the amount of custom code
implemented by of_platform, eliminates the unsafe alloc trick, and has
the side benefit of letting the platform_bus code manage freeing the
device data and resources when the device is freed.

Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Cc: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
Cc: "David S. Miller" &lt;davem@davemloft.net&gt;
Cc: Michal Simek &lt;monstr@monstr.eu&gt;
</content>
</entry>
<entry>
<title>of/irq: remove references to NO_IRQ in drivers/of/platform.c</title>
<updated>2010-10-13T03:58:27Z</updated>
<author>
<name>Andres Salomon</name>
<email>dilinger@queued.net</email>
</author>
<published>2010-10-11T03:35:05Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=52f6537cb2f0b461a9ce3457c01a6cfa2ae0bb22'/>
<id>urn:sha1:52f6537cb2f0b461a9ce3457c01a6cfa2ae0bb22</id>
<content type='text'>
Instead of referencing NO_IRQ in platform.c, define some helper functions
in irq.c to call instead from platform.c.  Keep NO_IRQ usage local to
irq.c, and define NO_IRQ if not defined in headers.

Signed-off-by: Andres Salomon &lt;dilinger@queued.net&gt;
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>of/platform: Register of_platform_drivers with an "of:" prefix</title>
<updated>2010-08-01T07:44:18Z</updated>
<author>
<name>Grant Likely</name>
<email>grant.likely@secretlab.ca</email>
</author>
<published>2010-07-29T23:55:50Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=7fb8f881c54beb05dd4d2c947dada1c636581d87'/>
<id>urn:sha1:7fb8f881c54beb05dd4d2c947dada1c636581d87</id>
<content type='text'>
Currently there are some drivers in tree which register both a
platform_driver and an of_platform_driver with the same name.  This is
a temporary situation until all the relevant of_platform_drivers are
converted to be normal platform_drivers.  Until then, this patch gives
all the of_platform_drivers an "of:" prefix to protect against bogus
matches and namespace conflicts.
</content>
</entry>
<entry>
<title>of/device: Make of_device_make_bus_id() usable by other code.</title>
<updated>2010-07-30T06:03:58Z</updated>
<author>
<name>Grant Likely</name>
<email>grant.likely@secretlab.ca</email>
</author>
<published>2010-07-23T21:04:01Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=c6601225380088018ae93df2ba7f0bb65334d63b'/>
<id>urn:sha1:c6601225380088018ae93df2ba7f0bb65334d63b</id>
<content type='text'>
The AMBA bus should also use of_device_make_bus_id() when populating device
out of device tree data.  This patch makes the function non-static, and
adds a suitable prototype in of_device.h

Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>of: remove of_default_bus_ids</title>
<updated>2010-07-24T15:58:22Z</updated>
<author>
<name>Jonas Bonn</name>
<email>jonas@southpole.se</email>
</author>
<published>2010-07-23T18:19:24Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=c0dd394ca5e78649b7013c3ce2d6338af9f228f0'/>
<id>urn:sha1:c0dd394ca5e78649b7013c3ce2d6338af9f228f0</id>
<content type='text'>
This list used was by only two platforms with all other platforms defining an
own list of valid bus id's to pass to of_platform_bus_probe.  This patch:

i)   copies the default list to the two platforms that depended on it (powerpc)
ii)  remove the usage of of_default_bus_ids in of_platform_bus_probe
iii) removes the definition of the list from all architectures that defined it

Passing a NULL 'matches' parameter to of_platform_bus_probe is still valid; the
function returns no error in that case as the NULL value is equivalent to an
empty list.

Signed-off-by: Jonas Bonn &lt;jonas@southpole.se&gt;
[grant.likely@secretlab.ca: added __initdata annotations, warn on and return error on missing match table, and fix whitespace errors]
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
</feed>
