Skip to content

Commit d20e47e

Browse files
committed
[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>
1 parent 40c7869 commit d20e47e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎arch/mips/pci/pci.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ static void pcibios_fixup_device_resources(struct pci_dev *dev,
242242
for (i = 0; i < PCI_NUM_RESOURCES; i++) {
243243
if (!dev->resource[i].start)
244244
continue;
245+
if (dev->resource[i].flags & IORESOURCE_PCI_FIXED)
246+
continue;
245247
if (dev->resource[i].flags & IORESOURCE_IO)
246248
offset = hose->io_offset;
247249
else if (dev->resource[i].flags & IORESOURCE_MEM)

0 commit comments

Comments
 (0)