Re: [PATCH] powerpc/85xx: don't call of_platform_bus_probe() twice

From
Kumar Gala <hidden>
Date
2012-03-21 15:09:07
Reply to
Grant Likely, 2012-03-19
On Mar 19, 2012, at 11:04 AM, Grant Likely wrote:
On Fri, 16 Mar 2012 15:50:44 -0500, Timur Tabi [off-list ref] =
wrote:
quoted
Kumar Gala wrote:
=20
quoted
This seems like paper taping over the real issue.  We should be able =
to call of_platform_bus_probe() multiple times.
quoted
=20
I tried debugging it, but I couldn't figure it out.  My guess is that =
the
quoted
nodes probed by of_platform_bus_probe() are somehow "reserved", so =
that
quoted
the second time it's called, they're skipped.  I figured that this =
was
quoted
just a side-effect of the way the OF layer works.
=20
The problem is that you want to create devices for grandchildren
nodes when the bus ids passed in don't match any of the child nodes so
the of_platform_bus_probe() doesn't iterate down to that level.  This
is correct and expected behaviour.
=20
g.
Does of_platform_populate() handle this?

- k=
Thread (13 messages) 13 messages, 3 authors, last reply 2012-04-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help