]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xtensa/PCI: convert to pci_scan_root_bus() for correct root bus resources
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 28 Oct 2011 22:28:19 +0000 (16:28 -0600)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 12 Dec 2011 20:53:03 +0000 (12:53 -0800)
commit0d7a43f5e753e38e39fe7695f8509f8702ce8dc3
tree604ab94ea177a56471e69048ca6c54b820da3b98
parentcebb54136af3f6b77073107ddeaf3584802ae726
xtensa/PCI: convert to pci_scan_root_bus() for correct root bus resources

Convert from pci_scan_bus() to pci_scan_root_bus() and remove root bus
fixups.  This fixes the problem of "early" and "header" quirks
seeing incorrect root bus resources.

This arch was unusual because it filled in bus->resource[0..3] in
pcibios_init(), then overwrote them, applied io_space.offset and
checked for unset resources in pcibios_fixup_bus().  I moved all of
that to a new pci_controller_apertures() that we can use before
scanning the root bus.

CC: Chris Zankel <chris@zankel.net>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
arch/xtensa/kernel/pci.c