[RFC][PATCH] add support to ppc32 to "use" pci_dn

Benjamin Herrenschmidt benh at kernel.crashing.org
Fri May 1 07:44:36 EST 2009


On Thu, 2009-04-30 at 16:07 -0500, Kumar Gala wrote:
> Ben,
> 
> This is my cut at unifying a bit of the ppc32 & ppc64 code.  I don't
> specifically intend to use all the OF bits on ppc32, but getting some of
> the structures the same so the non-OF related foo can be common is my
> goal.
> 
> This was all about trying to get pci_bus_to_hose() to be common.

I think a pre-req is to update the pci_dn code to use a similar
technique to ppc32 for linking the device nodes to the pci_dev's
(ie, walking level by level and only using the devfn and not the bus
number to go down in order to be agnostic to bus renumbering).

That way, you can completely switch over ppc32 to pci_dn incuding
pci_device_to_OF_node() etc... in one go.

Cheers,
Ben.





More information about the Linuxppc-dev mailing list