dtc: Assume properties preced subnodes in the flattened tree

Jon Loeliger jdl at jdl.com
Fri Sep 7 23:41:09 EST 2007


So, like, the other day David Gibson mumbled:
> With kernel commit eff2ebd207af9f501af0ef667a7d14befcb36c1b, we
> clarified that in the flattened tree format, a particular nodes
> properties are required to precede its subdnodes.
> 
> At present however, both dtc and libfdt will process trees which don't
> meet this condition.  This patch simplifies the code for
> fdt_get_property() based on assuming that constraint.  dtc continues
> to be able to handle such an invalid tree - on the grounds that it's
> useful for dtc to be able to correct such a broken tree - but this
> patch adds a warning when this condition is not met while reading a
> flattened tree.
> 
> Signed-off-by: David Gibson <david at gibson.dropbear.id.au>


Applied.

Thanks,
jdl



More information about the Linuxppc-dev mailing list