> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of Grant 
> Likely
> Sent: Friday, July 16, 2010 11:32 AM
> To: Stephen Neuendorffer
> Cc: [email protected]
> Subject: Re: [PATCH 2/8] drivers/of: Make device tree code work on any arch.
> 
> On Fri, Jul 16, 2010 at 12:13 PM, Stephen Neuendorffer
> <[email protected]> wrote:
> > Signed-off-by: Stephen Neuendorffer <[email protected]>
> >
> > ---
> >
> > I'm not sure what the right way to abstract these functions is.
> > of_node_to_nid seems specific to those platforms which have a root
> > device tree.  pci_address_to_pio seems to probably have a useful
> > implementation, but I'm not sure what it's trying to do.  Perhaps
> > someone can shed some light?
> 
> Right now I'm making each arch implement the pci_address_to_pio() and
> of_node_to_nid() hooks.  Not sure if I'll retain that in the long
> term.  pci_address_to_pio() will probably become common code
> eventually.

One thought that I had was to factor those archs/platforms that have a root 
device tree
(and probably have a useful of_node_to_nid), from those that don't.  This would 
also simplify
some of the #ifdefs in drivers/of/fdt.c which pick out MICROBLAZE, POWERPC and 
SPARC for
the early_device_tree stuff.

Steve


This email and any attachments are intended for the sole use of the named 
recipient(s) and contain(s) confidential information that may be proprietary, 
privileged or copyrighted under applicable law. If you are not the intended 
recipient, do not read, copy, or forward this email message or any attachments. 
Delete this email message and any attachments immediately.


_______________________________________________
devicetree-discuss mailing list
[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss

Reply via email to