[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <25cdc471-fe0e-3e87-0e41-bc3b7f7d2ade@quicinc.com>
Date: Wed, 29 Nov 2023 14:08:34 +0530
From: Nitin Rawat <quic_nitirawa@...cinc.com>
To: Can Guo <quic_cang@...cinc.com>, <bvanassche@....org>,
<mani@...nel.org>, <adrian.hunter@...el.com>, <cmd4@...lcomm.com>,
<beanhuo@...ron.com>, <avri.altman@....com>,
<junwoo80.lee@...sung.com>, <martin.petersen@...cle.com>
CC: <linux-scsi@...r.kernel.org>, <linux-arm-msm@...r.kernel.org>,
Andy Gross <agross@...nel.org>,
Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konrad.dybcio@...aro.org>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
"open list" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v6 09/10] scsi: ufs: ufs-qcom: Check return value of
phy_set_mode_ext()
On 11/29/2023 1:58 PM, Can Guo wrote:
> In ufs_qcom_power_up_sequence(), check return value of phy_set_mode_ext()
> and stop proceeding if phy_set_mode_ext() fails.
>
> Signed-off-by: Can Guo <quic_cang@...cinc.com>
> ---
> drivers/ufs/host/ufs-qcom.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c
> index 30f4ca6..9c0ebbc 100644
> --- a/drivers/ufs/host/ufs-qcom.c
> +++ b/drivers/ufs/host/ufs-qcom.c
> @@ -475,7 +475,12 @@ 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) {
> + dev_err(hba->dev, "%s: phy set mode failed, ret = %d\n",
> + __func__, ret);
> + goto out_disable_phy;
> + }
>
> /* power on phy - start serdes and phy's power and clocks */
> ret = phy_power_on(phy);
Reviewed-by: Nitin Rawat <quic_nitirawa@...cinc.com>
Powered by blists - more mailing lists