Commit d20e47e1 authored by Ralf Baechle's avatar Ralf Baechle

[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: default avatarRalf Baechle <ralf@linux-mips.org>
parent 40c7869b
...@@ -242,6 +242,8 @@ static void pcibios_fixup_device_resources(struct pci_dev *dev, ...@@ -242,6 +242,8 @@ static void pcibios_fixup_device_resources(struct pci_dev *dev,
for (i = 0; i < PCI_NUM_RESOURCES; i++) { for (i = 0; i < PCI_NUM_RESOURCES; i++) {
if (!dev->resource[i].start) if (!dev->resource[i].start)
continue; continue;
if (dev->resource[i].flags & IORESOURCE_PCI_FIXED)
continue;
if (dev->resource[i].flags & IORESOURCE_IO) if (dev->resource[i].flags & IORESOURCE_IO)
offset = hose->io_offset; offset = hose->io_offset;
else if (dev->resource[i].flags & IORESOURCE_MEM) else if (dev->resource[i].flags & IORESOURCE_MEM)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment