Skip to content

Commit 5206026

Browse files
mwgonzalezkishon
authored andcommitted
phy: qcom-qmp: Raise qcom_qmp_phy_enable() polling delay
readl_poll_timeout() calls usleep_range() to sleep between reads. usleep_range() doesn't work efficiently for tiny values. Raise the polling delay in qcom_qmp_phy_enable() to bring it in line with the delay in qcom_qmp_phy_com_init(). Signed-off-by: Marc Gonzalez <marc.w.gonzalez@free.fr> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
1 parent 5fc2aa3 commit 5206026

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/phy/qualcomm/phy-qcom-qmp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,7 @@ static int qcom_qmp_phy_enable(struct phy *phy)
15481548
status = pcs + cfg->regs[QPHY_PCS_READY_STATUS];
15491549
mask = cfg->mask_pcs_ready;
15501550

1551-
ret = readl_poll_timeout(status, val, val & mask, 1,
1551+
ret = readl_poll_timeout(status, val, val & mask, 10,
15521552
PHY_INIT_COMPLETE_TIMEOUT);
15531553
if (ret) {
15541554
dev_err(qmp->dev, "phy initialization timed-out\n");

0 commit comments

Comments
 (0)