diff options
author | Joshua Kinard <kumba@gentoo.org> | 2015-01-19 04:19:20 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-04-01 17:22:16 +0200 |
commit | a2e50f53d535fa885a432fb9fc3e3ca5ed97364c (patch) | |
tree | cf6bdd8cc6d54b2760484f37558220ea5ad30b8c /arch/mips/include/asm/pci/bridge.h | |
parent | 3db2742554bb7cc077de478c2ebf9c1efdd317f5 (diff) | |
download | op-kernel-dev-a2e50f53d535fa885a432fb9fc3e3ca5ed97364c.zip op-kernel-dev-a2e50f53d535fa885a432fb9fc3e3ca5ed97364c.tar.gz |
MIPS: PCI: Add a hook for IORESOURCE_BUS in pci_controller/bridge_controller
On SGI Origin 2k/Onyx2 and SGI Octane systems, there can exist multiple PCI
buses attached to the Xtalk bus. The current code will stop counting PCI buses
after it finds the first one. If one installs the optional PCI cardcage
("shoebox") into these systems, because of the order of the Xtalk widgets, the
current PCI code will find the cardcage first, and fail to detect the BaseIO
PCI devices, which are on a higher Xtalk widget ID.
This patch adds the hooks needed for resolving this issue in the IP27 PCI code
(in a later patch).
Verified on both an SGI Onyx2 and an SGI Octane.
Signed-off-by: Joshua Kinard <kumba@gentoo.org>
Cc: Linux MIPS List <linux-mips@linux-mips.org>
Patchwork: https://patchwork.linux-mips.org/patch/9074/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/pci/bridge.h')
-rw-r--r-- | arch/mips/include/asm/pci/bridge.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/include/asm/pci/bridge.h b/arch/mips/include/asm/pci/bridge.h index af2c8a3..8d7a63b 100644 --- a/arch/mips/include/asm/pci/bridge.h +++ b/arch/mips/include/asm/pci/bridge.h @@ -835,6 +835,7 @@ struct bridge_controller { struct pci_controller pc; struct resource mem; struct resource io; + struct resource busn; bridge_t *base; nasid_t nasid; unsigned int widget_id; |