Skip to content

Commit f2a3ce1

Browse files
committed
Merge branch 'pci/reset'
- Wait for each level of downstream bus, not just the first, to become accessible before restoring devices on that bus (Ilpo Järvinen) * pci/reset: PCI: Wait for Link before restoring Downstream Buses
2 parents d774674 + 3e40aa2 commit f2a3ce1

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

drivers/pci/pci.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5694,8 +5694,10 @@ static void pci_bus_restore_locked(struct pci_bus *bus)
56945694

56955695
list_for_each_entry(dev, &bus->devices, bus_list) {
56965696
pci_dev_restore(dev);
5697-
if (dev->subordinate)
5697+
if (dev->subordinate) {
5698+
pci_bridge_wait_for_secondary_bus(dev, "bus reset");
56985699
pci_bus_restore_locked(dev->subordinate);
5700+
}
56995701
}
57005702
}
57015703

@@ -5729,8 +5731,10 @@ static void pci_slot_restore_locked(struct pci_slot *slot)
57295731
if (!dev->slot || dev->slot != slot)
57305732
continue;
57315733
pci_dev_restore(dev);
5732-
if (dev->subordinate)
5734+
if (dev->subordinate) {
5735+
pci_bridge_wait_for_secondary_bus(dev, "slot reset");
57335736
pci_bus_restore_locked(dev->subordinate);
5737+
}
57345738
}
57355739
}
57365740

0 commit comments

Comments
 (0)