projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5ef85a
)
phy: qcom-qmp-usb: increase status polling period
author
Johan Hovold
<johan+linaro@kernel.org>
Wed, 12 Oct 2022 08:49:56 +0000
(10:49 +0200)
committer
Vinod Koul
<vkoul@kernel.org>
Fri, 28 Oct 2022 12:25:05 +0000
(17:55 +0530)
It typically takes between one and two milliseconds for the PHY to
become ready after starting it. Increase the tight 3--10 us polling
period to the more reasonable 51--200 us.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link:
https://lore.kernel.org/r/20221012085002.24099-14-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-usb.c
patch
|
blob
|
history
diff --git
a/drivers/phy/qualcomm/phy-qcom-qmp-usb.c
b/drivers/phy/qualcomm/phy-qcom-qmp-usb.c
index 840b67167581ea6f80926f6042e34ffbfed2f9c9..0bd9291e6a7b55588125a4994fa7910a7e9bab38 100644
(file)
--- a/
drivers/phy/qualcomm/phy-qcom-qmp-usb.c
+++ b/
drivers/phy/qualcomm/phy-qcom-qmp-usb.c
@@
-2163,7
+2163,7
@@
static int qmp_usb_power_on(struct phy *phy)
qphy_setbits(pcs, cfg->regs[QPHY_START_CTRL], cfg->start_ctrl);
status = pcs + cfg->regs[QPHY_PCS_STATUS];
- ret = readl_poll_timeout(status, val, !(val & PHYSTATUS),
1
0,
+ ret = readl_poll_timeout(status, val, !(val & PHYSTATUS),
20
0,
PHY_INIT_COMPLETE_TIMEOUT);
if (ret) {
dev_err(qmp->dev, "phy initialization timed-out\n");