linux/arch/microblaze/pci
Benjamin Herrenschmidt 98d9f30c82 pci/of: Match PCI devices to OF nodes dynamically
powerpc has two different ways of matching PCI devices to their
corresponding OF node (if any) for historical reasons. The ppc64 one
does a scan looking for matching bus/dev/fn, while the ppc32 one does a
scan looking only for matching dev/fn on each level in order to be
agnostic to busses being renumbered (which Linux does on some
platforms).

This removes both and instead moves the matching code to the PCI core
itself. It's the most logical place to do it: when a pci_dev is created,
we know the parent and thus can do a single level scan for the matching
device_node (if any).

The benefit is that all archs now get the matching for free. There's one
hook the arch might want to provide to match a PHB bus to its device
node. A default weak implementation is provided that looks for the
parent device device node, but it's not entirely reliable on powerpc for
various reasons so powerpc provides its own.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Michal Simek <monstr@monstr.eu>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2011-06-08 09:08:17 +10:00
..
indirect_pci.c Fix common misspellings 2011-03-31 11:26:23 -03:00
iomap.c microblaze: Enable PCI, missing files 2010-03-11 14:04:27 +01:00
Makefile microblaze: Add support for Xilinx PCI host bridge 2010-03-11 14:05:18 +01:00
pci_32.c pci/of: Match PCI devices to OF nodes dynamically 2011-06-08 09:08:17 +10:00
pci-common.c microblaze: Convert to new irq function names 2011-03-29 14:48:06 +02:00
xilinx_pci.c of: Fix missing includes 2010-08-16 23:44:49 -06:00