Skip to content

Commit 721089c

Browse files
committed
[DM/FIXUP] Add ms sleep for link status change
We should wait a while for success or failure after link status change or will communicate fail with the endpoint. Signed-off-by: GuEe-GUI <[email protected]>
1 parent 1799cad commit 721089c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/drivers/pci/probe.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,8 @@ static rt_uint32_t pci_scan_bridge_extend(struct rt_pci_bus *bus, struct rt_pci_
535535
if (pdev->pcie_cap)
536536
{
537537
pcie_fixup_link(pdev);
538+
/* Wait a while for success or failure */
539+
rt_thread_mdelay(10);
538540
}
539541

540542
++bus_no;

0 commit comments

Comments
 (0)