Skip to content

Commit 1d89b30

Browse files
Matthew Wilcoxtorvalds
authored andcommitted
ia64: Fix resource assignment for root busses
ia64 was assigning resources to root busses after allocations had been made for child busses. Calling pcibios_setup_root_windows() from pcibios_fixup_bus() solves this problem by assigning the resources to the root bus before child busses are scanned. Signed-off-by: Matthew Wilcox <willy@linux.intel.com> Tested-by: Andrew Patterson <andrew.patterson@hp.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent a76117d commit 1d89b30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/ia64/pci/pci.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,6 @@ pci_acpi_scan_root(struct acpi_device *device, int domain, int bus)
371371
* such quirk. So we just ignore the case now.
372372
*/
373373
pbus = pci_scan_bus_parented(NULL, bus, &pci_root_ops, controller);
374-
if (pbus)
375-
pcibios_setup_root_windows(pbus, controller);
376374

377375
return pbus;
378376

@@ -490,6 +488,8 @@ pcibios_fixup_bus (struct pci_bus *b)
490488
if (b->self) {
491489
pci_read_bridge_bases(b);
492490
pcibios_fixup_bridge_resources(b->self);
491+
} else {
492+
pcibios_setup_root_windows(b, b->sysdata);
493493
}
494494
list_for_each_entry(dev, &b->devices, bus_list)
495495
pcibios_fixup_device_resources(dev);

0 commit comments

Comments
 (0)