path: root/arch/microblaze
diff options
authorLorenzo Pieralisi <>2015-07-09 11:59:16 +0100
committerBjorn Helgaas <>2015-07-23 10:13:29 -0500
commitdff22d2054b5dbb1889f20c03959dd0c494fab8c (patch)
tree6f3956c967a62215275826b5158adfe7c203de1e /arch/microblaze
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590 (diff)
PCI: Call pci_read_bridge_bases() from core instead of arch code
When we scan a PCI bus, we read PCI-PCI bridge window registers with pci_read_bridge_bases() so we can validate the resource hierarchy. Most architectures call pci_read_bridge_bases() from pcibios_fixup_bus(), but PCI-PCI bridges are not arch-specific, so this doesn't need to be in arch-specific code. Call pci_read_bridge_bases() directly from the PCI core instead of from arch code. For alpha and mips, we now call pci_read_bridge_bases() always; previously we only called it if PCI_PROBE_ONLY was set. [bhelgaas: changelog] Signed-off-by: Lorenzo Pieralisi <> Signed-off-by: Bjorn Helgaas <> CC: Ralf Baechle <> CC: James E.J. Bottomley <> CC: Michael Ellerman <> CC: Bjorn Helgaas <> CC: Richard Henderson <> CC: Benjamin Herrenschmidt <> CC: David Howells <> CC: Russell King <> CC: Tony Luck <> CC: David S. Miller <> CC: Ingo Molnar <> CC: Guenter Roeck <> CC: Michal Simek <> CC: Chris Zankel <>
Diffstat (limited to 'arch/microblaze')
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c
index ae838ed5fcf2..6b8b75266801 100644
--- a/arch/microblaze/pci/pci-common.c
+++ b/arch/microblaze/pci/pci-common.c
@@ -863,14 +863,7 @@ void pcibios_setup_bus_devices(struct pci_bus *bus)
void pcibios_fixup_bus(struct pci_bus *bus)
- /* When called from the generic PCI probe, read PCI<->PCI bridge
- * bases. This is -not- called when generating the PCI tree from
- * the OF device-tree.
- */
- if (bus->self != NULL)
- pci_read_bridge_bases(bus);
- /* Now fixup the bus bus */
+ /* Fixup the bus */
/* Now fixup devices on that bus */