projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2577ba8
)
phy: qcom-qmp-pcie: increase status polling period
author
Johan Hovold
<johan+linaro@kernel.org>
Wed, 12 Oct 2022 08:49:47 +0000
(10:49 +0200)
committer
Vinod Koul
<vkoul@kernel.org>
Fri, 28 Oct 2022 12:25:04 +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-5-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
patch
|
blob
|
history
diff --git
a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
index 4af6b9e50d16f33e8f5d43f153558f7a749403bd..d3e7e673114fbc0cb42603c280a907be26f7b5c0 100644
(file)
--- a/
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
+++ b/
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
@@
-2004,7
+2004,7
@@
static int qmp_pcie_power_on(struct phy *phy)
status = pcs + cfg->regs[QPHY_PCS_STATUS];
mask = cfg->phy_status;
- ret = readl_poll_timeout(status, val, !(val & mask),
1
0,
+ ret = readl_poll_timeout(status, val, !(val & mask),
20
0,
PHY_INIT_COMPLETE_TIMEOUT);
if (ret) {
dev_err(qmp->dev, "phy initialization timed-out\n");