We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96447ed commit b262518Copy full SHA for b262518
drivers/pci/controller/dwc/pcie-designware.c
@@ -655,7 +655,7 @@ int dw_pcie_wait_for_link(struct dw_pcie *pci)
655
if (dw_pcie_link_up(pci))
656
break;
657
658
- usleep_range(LINK_WAIT_USLEEP_MIN, LINK_WAIT_USLEEP_MAX);
+ msleep(LINK_WAIT_SLEEP_MS);
659
}
660
661
if (retries >= LINK_WAIT_MAX_RETRIES) {
drivers/pci/controller/dwc/pcie-designware.h
@@ -63,8 +63,7 @@
63
64
/* Parameters for the waiting for link up routine */
65
#define LINK_WAIT_MAX_RETRIES 10
66
-#define LINK_WAIT_USLEEP_MIN 90000
67
-#define LINK_WAIT_USLEEP_MAX 100000
+#define LINK_WAIT_SLEEP_MS 90
68
69
/* Parameters for the waiting for iATU enabled routine */
70
#define LINK_WAIT_MAX_IATU_RETRIES 5
0 commit comments