summaryrefslogtreecommitdiffstats
path: root/arch/mips/pci
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2007-12-11 19:49:24 +0000
committerRalf Baechle <ralf@linux-mips.org>2007-12-14 17:34:29 +0000
commitd20e47e153dcfddca5a066ff0f8da2d1104d08ea (patch)
treef587d4b9b7c67ca5ced4e9eb1ebdcfafcd259a55 /arch/mips/pci
parent40c7869b693b18412491fdcff64682215b739f9e (diff)
downloadop-kernel-dev-d20e47e153dcfddca5a066ff0f8da2d1104d08ea.zip
op-kernel-dev-d20e47e153dcfddca5a066ff0f8da2d1104d08ea.tar.gz
[MIPS] PCI: Make pcibios_fixup_device_resources ignore legacy resources.
There might be other reasons why a resource might be marked as fixed such as a PCI UART holding the system console but until we use IORESOURCE_PCI_FIXED that way also this will work. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/pci')
-rw-r--r--arch/mips/pci/pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c
index 589b745..6e6981f 100644
--- a/arch/mips/pci/pci.c
+++ b/arch/mips/pci/pci.c
@@ -242,6 +242,8 @@ static void pcibios_fixup_device_resources(struct pci_dev *dev,
for (i = 0; i < PCI_NUM_RESOURCES; i++) {
if (!dev->resource[i].start)
continue;
+ if (dev->resource[i].flags & IORESOURCE_PCI_FIXED)
+ continue;
if (dev->resource[i].flags & IORESOURCE_IO)
offset = hose->io_offset;
else if (dev->resource[i].flags & IORESOURCE_MEM)
OpenPOWER on IntegriCloud