提交 fffdeaf8 编写于 作者: J Johan Hovold 提交者: Vinod Koul

phy: qcom-qmp-pcie: fix initialisation reset

Add the missing delay after asserting reset. This is specifically needed
for the reset to have any effect on SC8280XP.

The vendor driver uses a 1 ms delay, but that seems a bit excessive.
Instead use a 200 us delay which appears to be more than enough and also
matches the UFS reset delay added by commit 870b1279 ("scsi:
ufs-qcom: Add reset control support for host controller").
Reviewed-by: NDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: NJohan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20221105145939.20318-14-johan+linaro@kernel.orgSigned-off-by: NVinod Koul <vkoul@kernel.org>
上级 7bc609e3
...@@ -1866,6 +1866,8 @@ static int qmp_pcie_init(struct phy *phy) ...@@ -1866,6 +1866,8 @@ static int qmp_pcie_init(struct phy *phy)
goto err_disable_regulators; goto err_disable_regulators;
} }
usleep_range(200, 300);
ret = reset_control_bulk_deassert(cfg->num_resets, qmp->resets); ret = reset_control_bulk_deassert(cfg->num_resets, qmp->resets);
if (ret) { if (ret) {
dev_err(qmp->dev, "reset deassert failed\n"); dev_err(qmp->dev, "reset deassert failed\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册