Skip to content

Commit a68abda

Browse files
quic-cangmartinkpetersen
authored andcommitted
scsi: ufs: ufs-qcom: Check return value of phy_set_mode_ext()
In ufs_qcom_power_up_sequence(), check return value of phy_set_mode_ext() and stop proceeding if phy_set_mode_ext() fails. Reviewed-by: Nitin Rawat <quic_nitirawa@quicinc.com> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Can Guo <quic_cang@quicinc.com> Link: https://lore.kernel.org/r/1701520577-31163-8-git-send-email-quic_cang@quicinc.com Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8550-QRD Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 0bd3cb8 commit a68abda

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/ufs/host/ufs-qcom.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,9 @@ static int ufs_qcom_power_up_sequence(struct ufs_hba *hba)
475475
return ret;
476476
}
477477

478-
phy_set_mode_ext(phy, mode, host->phy_gear);
478+
ret = phy_set_mode_ext(phy, mode, host->phy_gear);
479+
if (ret)
480+
goto out_disable_phy;
479481

480482
/* power on phy - start serdes and phy's power and clocks */
481483
ret = phy_power_on(phy);

0 commit comments

Comments
 (0)