Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp813968rdb; Thu, 30 Nov 2023 21:43:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IHRE0t2Ad4bnRKwrlaKVjGoFjdFy+GIypMaqTwuXXmz2HheFNceKMPBB8tIZA7Z06duLA8v X-Received: by 2002:a05:6359:2885:b0:16d:be4c:4e64 with SMTP id qa5-20020a056359288500b0016dbe4c4e64mr20330044rwb.15.1701409411179; Thu, 30 Nov 2023 21:43:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701409411; cv=none; d=google.com; s=arc-20160816; b=tRlHG0MXnSMFomJQ8e1Fw5sTaEtCLXINACrASel3f6WOOidWBlA7fd1D5NMJ8CvbEy tVl67jnoZ1VZCTVN85CJa+cq61c8Vw99Nlo+/i3JTcPhZAuTPKcYTipEpXc1Hihc1RyD 5rFbAGm0VoQdWGgIkmkrCVig1W/l1E0mX2a/UtRXdEBLCbZUZRf+vvtaM5YHs9aE7kCy mhwPVxmy7PLqco5svd+Km+Tg0v30K1IO6qYtNOno/j6gdQwyz9bdQCTy/HMnzAbzoD14 6Hsypayc0IuGVnuDjeCwIsSPs/8qHDUTmcMKdrcOAZH5VuDHT1Y5AyxMpRnVPHVSm0sg BXZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=X9/3I7JuaVLpJTtZj45b1VRPnAwr84UPKyD9ABbA3/g=; fh=YaEdSo5MH7RgCXFiwrENyugryvX2VDgDTxOBToZqfPw=; b=JmKUoARvVmcTLRfegea1EqTKEzb4M/Ng3RW+3a4t0n7KJW+xb++2g95ItjLfcSa4G5 s8RCmrzNmINof3G6LKnjPb17+oQjPpRCDiueyOiZwn7DOcQTQV2BQdVeIWVoOtg5HmJ3 /CNKVxYSpMgJM0G6411guPK6+XGcSu7CscCQpLzPAWsH91Tl9uVxwi6b991WuwZhqN0Z b+1+DKcL7HZ4SdYWSS/KJG243mqCcT32V2pjgqYpLCMZbboe8PraqtnPK0vsimm9TJPW +tiARBb1J+u00mRmpTSOn6R2noYB843gE1IUJjFaows81YnXrg1GEPQgRk5PFa2c+oQ3 TPsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ADa8Ma8z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id h8-20020a056a00170800b006ce00c4a80asi425229pfc.329.2023.11.30.21.43.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 21:43:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ADa8Ma8z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 572248227181; Thu, 30 Nov 2023 21:43:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377402AbjLAFnP (ORCPT + 99 others); Fri, 1 Dec 2023 00:43:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbjLAFnO (ORCPT ); Fri, 1 Dec 2023 00:43:14 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CC35F2 for ; Thu, 30 Nov 2023 21:43:20 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D09A4C433C9; Fri, 1 Dec 2023 05:43:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701409400; bh=6sMeY93ms6fPD3cyS25qVVh5+8+aMjpl27NnFtOQ4YU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ADa8Ma8zdT9RYLBuGmS00EbJSC2pkQUF9x2/Jg5Ht1RbtWZ0/vfnbrgKkOPnCebDC nVDrhJwyD5UClFbNwZDxHRC6HE7E10K8WhvRXVMePjIM2WMZLTO3zZXNU42CtO5O0X UsZbfrvvRfiKPiP3SfuXno+EMDFZ5cxODpiHDL+0IcJd3YNDjQNQDm92VBbGpQPcbn CRcB1mXV2NOYPT9XNEOTFUQvI7cD1bI49vcKbxxz+UuOdc7Lf8ru74joJY9IxQCBYW q7kc2wgZ//jxvnbbcMuIh0KCrG0Kce7sbCOEvi2sV2NiK6EG6IHflXyzabR+hxHr3C ugZuve0/PY7bA== Date: Fri, 1 Dec 2023 11:13:04 +0530 From: Manivannan Sadhasivam To: Can Guo Cc: bvanassche@acm.org, adrian.hunter@intel.com, vkoul@kernel.org, beanhuo@micron.com, avri.altman@wdc.com, junwoo80.lee@samsung.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-arm-msm@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , "James E.J. Bottomley" , open list Subject: Re: [PATCH v7 07/10] scsi: ufs: ufs-qcom: Check return value of phy_set_mode_ext() Message-ID: <20231201054304.GB4009@thinkpad> References: <1701407001-471-1-git-send-email-quic_cang@quicinc.com> <1701407001-471-8-git-send-email-quic_cang@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1701407001-471-8-git-send-email-quic_cang@quicinc.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 30 Nov 2023 21:43:28 -0800 (PST) On Thu, Nov 30, 2023 at 09:03:17PM -0800, 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. > > Reviewed-by: Nitin Rawat > Signed-off-by: Can Guo Reviewed-by: Manivannan Sadhasivam - Mani > --- > drivers/ufs/host/ufs-qcom.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c > index 543939c..ee3f07a 100644 > --- a/drivers/ufs/host/ufs-qcom.c > +++ b/drivers/ufs/host/ufs-qcom.c > @@ -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); > -- > 2.7.4 > -- மணிவண்ணன் சதாசிவம்