mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
phy: qcom-qmp-usb: increase status 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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
This commit is contained in:
@@ -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), 10,
|
||||
ret = readl_poll_timeout(status, val, !(val & PHYSTATUS), 200,
|
||||
PHY_INIT_COMPLETE_TIMEOUT);
|
||||
if (ret) {
|
||||
dev_err(qmp->dev, "phy initialization timed-out\n");
|
||||
|
||||
Reference in New Issue
Block a user