diff options
author | Johan Hovold <johan+linaro@kernel.org> | 2022-05-02 15:31:29 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2022-05-03 10:12:03 +0530 |
commit | 5e73b2d9867998278479ccc065a8a8227a5513ef (patch) | |
tree | eb1c3af5470dd3c869322814b8e3d63b518508db /drivers/phy | |
parent | 0a97630ac9726436e319e38cb95d73706581c6c4 (diff) | |
download | linux-5e73b2d9867998278479ccc065a8a8227a5513ef.tar.bz2 |
phy: qcom-qmp: fix pipe-clock imbalance on power-on failure
Make sure to disable the pipe clock also if ufs-reset deassertion fails
during power on.
Note that the ufs-reset is asserted in qcom_qmp_phy_com_exit().
Fixes: c9b589791fc1 ("phy: qcom: Utilize UFS reset controller")
Cc: Evan Green <evgreen@chromium.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20220502133130.4125-2-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy')
-rw-r--r-- | drivers/phy/qualcomm/phy-qcom-qmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c b/drivers/phy/qualcomm/phy-qcom-qmp.c index d6581a165da3..4e088e3cb2b8 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp.c @@ -5319,7 +5319,7 @@ static int qcom_qmp_phy_power_on(struct phy *phy) ret = reset_control_deassert(qmp->ufs_reset); if (ret) - goto err_lane_rst; + goto err_pcs_ready; qcom_qmp_phy_configure(pcs_misc, cfg->regs, cfg->pcs_misc_tbl, cfg->pcs_misc_tbl_num); |