Re: OF device mappings

2009-02-28 Thread Benjamin Herrenschmidt
On Sat, 2009-02-28 at 12:18 -0700, Gary Thomas wrote: > Grant Likely wrote: > > On Sat, Feb 28, 2009 at 11:21 AM, Gary Thomas wrote: > >> Grant Likely wrote: > >>> Once you have a handle to the node, you can iterate through the > >>> of_platform bus devices and look for a node which has a matching

Re: OF device mappings

2009-02-28 Thread Gary Thomas
Grant Likely wrote: > On Sat, Feb 28, 2009 at 12:18 PM, Gary Thomas wrote: >> Grant Likely wrote: How do I find the platform_device which was created when this particular of_device was instantiated? I made sure that this code is run late - after all the of_devices have been handled

Re: OF device mappings

2009-02-28 Thread Grant Likely
On Sat, Feb 28, 2009 at 12:18 PM, Gary Thomas wrote: > Grant Likely wrote: >>> How do I find the platform_device which was created when this >>> particular of_device was instantiated?  I made sure that this code >>> is run late - after all the of_devices have been handled. >> >> Again, there is no

Re: OF device mappings

2009-02-28 Thread Gary Thomas
Grant Likely wrote: > On Sat, Feb 28, 2009 at 11:21 AM, Gary Thomas wrote: >> Grant Likely wrote: >>> Once you have a handle to the node, you can iterate through the >>> of_platform bus devices and look for a node which has a matching node >>> pointer stored in archdata. That will give you a stru

Re: OF device mappings

2009-02-28 Thread Grant Likely
On Sat, Feb 28, 2009 at 11:21 AM, Gary Thomas wrote: > Grant Likely wrote: >> Once you have a handle to the node, you can iterate through the >> of_platform bus devices and look for a node which has a matching node >> pointer stored in archdata.  That will give you a struct device which >> is cont

Re: OF device mappings

2009-02-28 Thread Gary Thomas
Grant Likely wrote: > On Sat, Feb 28, 2009 at 10:46 AM, Gary Thomas wrote: >> Still looking for some help... I need to be able to locate >> the kernel platform_device which corresponds to an instance >> from my OF tree. Basically, I have a [somewhat] unrelated >> driver which needs to know these

Re: OF device mappings

2009-02-28 Thread Grant Likely
On Sat, Feb 28, 2009 at 10:46 AM, Gary Thomas wrote: > Still looking for some help...  I need to be able to locate > the kernel platform_device which corresponds to an instance > from my OF tree.  Basically, I have a [somewhat] unrelated > driver which needs to know these things, so the drivers in

OF device mappings

2009-02-28 Thread Gary Thomas
Still looking for some help... I need to be able to locate the kernel platform_device which corresponds to an instance from my OF tree. Basically, I have a [somewhat] unrelated driver which needs to know these things, so the drivers in question should not have to be affected. In particular, I'm