[RFC PATCH 00/12] Merge common OpenFirmware device tree code

Grant Likely grant.likely at secretlab.ca
Wed Oct 7 15:49:04 EST 2009


On Tue, Oct 6, 2009 at 10:29 PM, Grant Likely <grant.likely at secretlab.ca> wrote:
> Well, I've got to start somewhere...
>
> So here goes.  I've begun the work to merge and clean up the OF device
> tree handling code and this is my first set of patches.  Not fully
> tested yet, but I'm getting them out to the lists so that I can start
> responding to comments and collecting acks.  This first batch isn't
> anything exciting, just a merge of common code

Shoot.... most of what I wrote got trimmed accidentally.  Here's the
rest of the text:

However, I've completely devoted to this work for at least the next
two months, so there are plenty more patches to follow.  Once I've
got all the common code merged between Microblaze, PowerPC and Sparc
I'll be fix the endian problems and making it easily usable by other
architectures like ARM and MIPS.  Lots of work to be done.

As for merging this stuff, because the patches cross architecture
boundaries, I've been thinking of publishing a new git tree for
collecting device tree related changes and getting it added to the
linux-next tree list.  I'll commit changes to that tree once I get
acks from each of the affected arch maintainers.  Then, either Linus
can pull my tree directly, or I could ask a more senior maintainer
to pull into their tree before sending a pull request to Linus.  Ben,
David and Michal, how does that sound to you?  Stephen, would you be
willing to add my tree to the linux-next list?

Also, I'd like to take on responsibility for maintaining the cross-
architecture device tree code.  If there are no objections, I'll
write a patch to add a device tree section to MAINTAINERS.

Cheers,
g.

> ---
>
> Grant Likely (12):
>      of: merge of_find_all_nodes() implementations
>      of: merge other miscellaneous prototypes
>      of: merge of_*_flat_dt*() functions
>      of: merge of_node_get(), of_node_put() and of_find_all_nodes()
>      of: merge of_read_number() an of_read_ulong()
>      of: merge of_node_*_flag() and set_node_proc_entry()
>      of: merge struct boot_param_header from Microblaze and PowerPC
>      of: add common header for flattened device tree representation
>      of: Move OF_IS_DYNAMIC and OF_MARK_DYNAMIC macros to of.h
>      of: merge struct device_node
>      of: merge phandle, ihandle and struct property
>      of: Rework linux/of.h and asm/prom.h include ordering
>
>
>  arch/microblaze/include/asm/prom.h |  135 +--------------------------------
>  arch/microblaze/kernel/prom.c      |   23 ------
>  arch/powerpc/include/asm/prom.h    |  147 ------------------------------------
>  arch/powerpc/kernel/prom.c         |   23 ------
>  arch/sparc/include/asm/prom.h      |   55 -------------
>  drivers/of/base.c                  |   26 ++++++
>  include/linux/of.h                 |  103 +++++++++++++++++++++++++
>  include/linux/of_fdt.h             |   87 +++++++++++++++++++++
>  8 files changed, 221 insertions(+), 378 deletions(-)
>  create mode 100644 include/linux/of_fdt.h


More information about the Linuxppc-dev mailing list