[PATCH 0/3] Add fdt_unflatten_tree

Grant Likely grant.likely at secretlab.ca
Thu Nov 18 07:19:53 EST 2010


On Wed, Nov 17, 2010 at 1:08 PM, Kumar Gala <galak at kernel.crashing.org> wrote:
>
> On Nov 17, 2010, at 1:15 PM, Stephen Neuendorffer wrote:
>
>>       Currently, fdt blobs are handled solely at boot time.  However,
>> it may be useful to parse blobs into device trees after boot time.  For
>> instance, a PCIe device may have an FPGA which includes a device
>> tree.  This set of patches locally refactors the existing code to enable
>> this.   The code has been compile-tested on X86 but has not been run in this
>> version.  However, the patch is rather straightforward.
>>
>> Stephen Neuendorffer (3):
>>  fdt.c: Add non-boottime device tree functions
>>  fdt.c: Refactor unflatten_dt_node
>>  fdt.c: Refactor unflatten_device_tree and add fdt_unflatten_tree
>>
>> drivers/of/fdt.c       |  393 +++++++++++++++++++++++++++++-------------------
>> include/linux/of_fdt.h |   11 ++
>> 2 files changed, 251 insertions(+), 153 deletions(-)
>
> It would be really nice if we could factor some of the live tree code into a library.  I have some need for this in another context.

I've got no problem with that if someone wants to do the legwork

> Not sure if we could actually build libfdt and link it into the kernel directly rather than what we do today.

No reason why not, but it would mean refactoring all of the early init stuff.

g.


More information about the devicetree-discuss mailing list