Re: [PATCH 07/11] x86/dtb: add support for PCI devices backed by dtb nodes
From: Sebastian Andrzej Siewior
Date: Thu Dec 02 2010 - 11:18:12 EST
* Benjamin Herrenschmidt | 2010-11-29 09:32:06 [+1100]:
>Hehe yeah :-) It's actually not a simple problem. For example, we can't
>just move the powerpc variant over to generic code as-is bcs ... we have
>2 completely different ways of doing it between ppc32 and ppc64 for
>historical reasons :-) They also have different "features". This is
>something I need to reconcile at some stage.
>
>For example our ppc32 variant support bus renumbering (ie, Linux
>assigning different bus numbers than what the DT encodes) while our
>ppc64 doesn't, but our ppc64 variant has additional "stuff" to deal with
>hotplug for example etc...
With this patch I can get rid of my custom of_irq_map_pci() in x86 tree.
The remaining thing would be the inferior pci_device <=> of_node match
code.
This is only x86 tested.