OSDN Git Service

MIPS: PCI: Add a hook for IORESOURCE_BUS in pci_controller/bridge_controller
authorJoshua Kinard <kumba@gentoo.org>
Mon, 19 Jan 2015 09:19:20 +0000 (04:19 -0500)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 1 Apr 2015 15:22:16 +0000 (17:22 +0200)
commita2e50f53d535fa885a432fb9fc3e3ca5ed97364c
treecf6bdd8cc6d54b2760484f37558220ea5ad30b8c
parent3db2742554bb7cc077de478c2ebf9c1efdd317f5
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>
arch/mips/include/asm/pci.h
arch/mips/include/asm/pci/bridge.h
arch/mips/pci/pci.c