Commit 52060264 authored by Marc Gonzalez's avatar Marc Gonzalez Committed by Kishon Vijay Abraham I
Browse files

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: default avatarMarc Gonzalez <marc.w.gonzalez@free.fr>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
parent 5fc2aa3e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1548,7 +1548,7 @@ static int qcom_qmp_phy_enable(struct phy *phy)
	status = pcs + cfg->regs[QPHY_PCS_READY_STATUS];
	mask = cfg->mask_pcs_ready;

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