Message ID | bd5144fc12eeb611a85d194bbccdcac577fc6084.camel@kernel.crashing.org (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show |
Series | IORESOURCE_PCI_FIXES & __pci_bus_assign_resources() | expand |
--- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c @@ -1345,11 +1345,12 @@ void __pci_bus_assign_resources(const struct pci_bus *bus, struct pci_bus *b; struct pci_dev *dev; + list_for_each_entry(dev, &bus->devices, bus_list) + pdev_assign_fixed_resources(dev); + pbus_assign_resources_sorted(bus, realloc_head, fail_head); list_for_each_entry(dev, &bus->devices, bus_list) { - pdev_assign_fixed_resources(dev); - b = dev->subordinate; if (!b) continue;