Commit 9a402cb
PCI: Fix PCIe unplug Enumeration Long Blocking Issue
When a USB4 device is inserted, a PCIe tunnel will be established.
Then, the PCIe hierarchy within the USB4 device will be enumerated.
If the device is suddenly unplugged during the enumeration process,
it is possible that the function pci_find_next_ext_capability called when
the PCI driver scans the PCIe extended capability may take a very long
time, perhaps more than 20 seconds.
Signed-off-by: LeoLiu-oc <leoliu-oc@zhaoxin.com>1 parent 585d92b commit 9a402cb
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
594 | 597 | | |
595 | 598 | | |
596 | 599 | | |
| |||
0 commit comments