[PATCH 5/6] OF: Introduce Device Tree resolve support.

Grant Likely grant.likely at secretlab.ca
Sat Mar 16 20:24:35 EST 2013


On Wed, 23 Jan 2013 12:58:02 +0200, Pantelis Antoniou <panto at antoniou-consulting.com> wrote:
> Hi David,
> 
> On Jan 23, 2013, at 6:40 AM, David Gibson wrote:
> > Ok.  Nonetheless it's not hard to avoid a recursive approach here.
> 
> How can I find the maximum phandle value of a subtree without using recursion.
> Note that the whole function is just 6 lines long.

It's a failure in the existing kernel DT data structures. We need a hash
lookup for the phandles to eliminate the search entirely. Then you'd be
able to allocated new phandles on the fly easily and resolve phandles
without searching the whole tree (which has always been horrible).

That said, I'd like to punt on the whole phandle resolution thing. The
DT overlay support can be merged without the phandle resolution support
if the core rejects any overlays with phandle collisions.

g.


More information about the devicetree-discuss mailing list