Thread (6 messages) 6 messages, 4 authors, 2012-03-18

Re: issues calling of_platform_bus_probe() twice

flat view

From: Grant Likely <hidden>
Date: 2012-03-18 09:08:04
Also in: linux-devicetree

On Sat, 17 Mar 2012 13:35:02 +0000, Tabi Timur-B04825 [off-list ref] wrote:
Grant Likely wrote:
quoted
quoted
quoted
quoted
 >  Are you aware of any reason that we can't call of_platform_bus_probe()
 >  or multiple times.  Timur's run into an issue in which all devices
 >  don't get registered properly if we call of_platform_bus_probe() times
 >  with different of_device_id struct's.
 Nothing comes to mind... Grant ?
Neither for me.  Should work.
I posted a work-around patch here:

http://patchwork.ozlabs.org/patch/128533/

Without this patch, drivers cannot probe on DMA *channels*, or any other 
grandchildren of the root node.
That's because you're using it wrong.  of_platform_bus_probe() creates
platform devices at the starting level and every level below it as
described by the bus ids.  It is illegal to call of_platform_bus_probe()
twice at the same level in the DT.

g.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help