
11 Jul
2010
11 Jul
'10
5:04 p.m.
On Jul 10, 2010, at 1:44 PM, Timur Tabi wrote:
On Sat, Jul 10, 2010 at 8:25 AM, Kumar Gala galak@kernel.crashing.org wrote:
If we are creating reference (handles) to nodes in a device tree we need to first create a new phandle in node and this needs a new phandle value. So we search through the whole dtb to find the max phandle value and return the next greater value for a new phandle allocation.
Signed-off-by: Kumar Gala galak@kernel.crashing.org
I still think you should merge my fdt_get_max_phandle() function into this patch. The two functions are related and can share code.
I'm replacing fdt_get_max_phandle w/fdt_alloc_phandle in our tree's. As what we are doing is allocating a phandle value.
- k