mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 06:31:58 +02:00
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>
This commit is contained in:
parent
0bd3cb895d
commit
a68abdadfe
|
|
@ -475,7 +475,9 @@ static int ufs_qcom_power_up_sequence(struct ufs_hba *hba)
|
|||
return ret;
|
||||
}
|
||||
|
||||
phy_set_mode_ext(phy, mode, host->phy_gear);
|
||||
ret = phy_set_mode_ext(phy, mode, host->phy_gear);
|
||||
if (ret)
|
||||
goto out_disable_phy;
|
||||
|
||||
/* power on phy - start serdes and phy's power and clocks */
|
||||
ret = phy_power_on(phy);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user