diff options
author | Johan Hovold <johan+linaro@kernel.org> | 2022-10-12 10:49:54 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2022-10-28 17:55:04 +0530 |
commit | 7516edbfaf708e5b987f1b9f23aa7336dd4a812d (patch) | |
tree | b6d226cce682fbde18f604b0d2587c9dd15cae54 /drivers | |
parent | 2f561b687cf47e289b7e068881ad87530c1f1435 (diff) | |
download | linux-stable-7516edbfaf708e5b987f1b9f23aa7336dd4a812d.tar.gz linux-stable-7516edbfaf708e5b987f1b9f23aa7336dd4a812d.tar.bz2 linux-stable-7516edbfaf708e5b987f1b9f23aa7336dd4a812d.zip |
phy: qcom-qmp-ufs: increase ready polling period
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-12-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/phy/qualcomm/phy-qcom-qmp-ufs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c b/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c index 8380904cf26c..1a51f803928b 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c @@ -937,7 +937,7 @@ static int qmp_ufs_power_on(struct phy *phy) qphy_setbits(pcs, cfg->regs[QPHY_START_CTRL], cfg->start_ctrl); status = pcs + cfg->regs[QPHY_PCS_READY_STATUS]; - ret = readl_poll_timeout(status, val, (val & PCS_READY), 10, + ret = readl_poll_timeout(status, val, (val & PCS_READY), 200, PHY_INIT_COMPLETE_TIMEOUT); if (ret) { dev_err(qmp->dev, "phy initialization timed-out\n"); |