From nobody Wed Nov 27 14:21:39 2024 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F8411F940E for ; Thu, 10 Oct 2024 07:42:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.25 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728546157; cv=none; b=SYCr/Zb9xQpa+tosePBUZiTDuGUUMDWxr6lUwzkN55h1514fFtHUjJE15C6vZ0FxYq+tufXBw57cbCb4vwoqyA2uczV0akjrx0MkvebNS+92OEDv1kd6dpK5/2NIJMUVufjb29cxKywHPn150eLwDHgYB+hxhR2UZqaG/U7igZU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728546157; c=relaxed/simple; bh=eN7X38t2A1GojgdAPRHihJ4Ptnr5GRtZho/F6GVYf/A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:MIME-Version: Content-Type:References; b=Mqz+wGuVFIX5khWLYabU53WzBYYsIz/CRonIngGwmFJqzY3eea+z66BOQvwJ7xuwgeeOvoabeK3ApER+vxil/v/7pxhEJd3YcY+y+TUmkoheQ+WIgklpaNXLSw/HrHzs3J+no6MYhsv3B7Heb8/R2EiqvF95AQyjOeq1R4M8ivU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=aknj+M7/; arc=none smtp.client-ip=203.254.224.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="aknj+M7/" Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20241010074233epoutp028dc9f322e5c41192bd9126c5ef70eab5~9B5GeaG0Q0717407174epoutp02y for ; Thu, 10 Oct 2024 07:42:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20241010074233epoutp028dc9f322e5c41192bd9126c5ef70eab5~9B5GeaG0Q0717407174epoutp02y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1728546154; bh=MzEcKQEMsBaalWP6NqvxH0uESA4d9gCI95r0v9wBPL4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aknj+M7/vH0uSksbrpD++qjxTBXo6n6OkvTTgrm/EEXLNpIkNyfgEAB+3ILat8kEc iLE64J1lXAwSBosUe0mcyzjyGGih5uZJHMO92LiA4ZjJwTmNoT6QQsFx4llOgnq1Cz sShbZQWeiAQ69svjk8o+mL6V/VMlIgqi/AEJ/+t0= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20241010074233epcas2p3acb07484c15b6e0c38e1dde3118a2d01~9B5F2pXhn1443414434epcas2p3I; Thu, 10 Oct 2024 07:42:33 +0000 (GMT) Received: from epsmges2p1.samsung.com (unknown [182.195.36.101]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4XPMD82cpSz4x9Pw; Thu, 10 Oct 2024 07:42:32 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id B7.08.09396.86587076; Thu, 10 Oct 2024 16:42:32 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20241010074231epcas2p2d15a81d68b68d757039a56e8dd9cca3c~9B5Ea7cLF2794227942epcas2p2c; Thu, 10 Oct 2024 07:42:31 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20241010074231epsmtrp1b66a5fe9757a26bc2cb4fc589383614c~9B5EaFOSz0182601826epsmtrp1b; Thu, 10 Oct 2024 07:42:31 +0000 (GMT) X-AuditID: b6c32a45-671ff700000024b4-5d-670785688f42 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 03.76.08229.76587076; Thu, 10 Oct 2024 16:42:31 +0900 (KST) Received: from rack03.dsn.sec.samsung.com (unknown [10.229.95.126]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20241010074231epsmtip2f358f63f1a26e3804918b72c715ba9b0~9B5EJhQEq1882818828epsmtip2e; Thu, 10 Oct 2024 07:42:31 +0000 (GMT) From: SEO HOYOUNG To: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, alim.akhtar@samsung.com, avri.altman@wdc.com, jejb@linux.ibm.com, martin.petersen@oracle.com, beanhuo@micron.com, bvanassche@acm.org, kwangwon.min@samsung.com, kwmad.kim@samsung.com, sh425.lee@samsung.com, quic_nguyenb@quicinc.com, cpgs@samsung.com, h10.kim@samsung.com, grant.jung@samsung.com, junwoo80.lee@samsung.com, wkon.kim@samsung.com Cc: SEO HOYOUNG Subject: [PATCH v3 2/2] scsi: ufs: core: reflect function execution result in return Date: Thu, 10 Oct 2024 16:52:29 +0900 Message-Id: <300052382d9d03bf087d71201bd159805b8fd041.1728544727.git.hy50.seo@samsung.com> X-Mailer: git-send-email 2.26.0 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNJsWRmVeSWpSXmKPExsWy7bCmqW5GK3u6Qcd0fosH87axWbz8e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bvNLVWlBOetKJgahfH04afJ0JzX703F5wqp7Sp8ukVzcuHGqd/ez2bQfmftYqP5PPu tT8e3OF6ZZXCm+Ds94s7xkrj8jRt8cjewBU/lIrCvNcl/WVpyduVq2Ea2zKhatvtCVGTlViK MxINtZiLihMBvDFz5xwDAAA= X-CMS-MailID: 20241010074231epcas2p2d15a81d68b68d757039a56e8dd9cca3c X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P X-CPGSPASS: Y DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20241010074231epcas2p2d15a81d68b68d757039a56e8dd9cca3c References: If an error is returned in the power mode function, it is returned and modified to cause failure in the UFS linkup. If it is an asymmetric connected lane, the UFS init can fail because it is an incorrect situation. Signed-off-by: SEO HOYOUNG --- drivers/ufs/core/ufshcd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index 387eec6f19ef..1381eb7d506a 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -8587,7 +8587,8 @@ static int ufshcd_device_params_init(struct ufs_hba *= hba) hba->dev_info.f_power_on_wp_en =3D flag; =20 /* Probe maximum power mode co-supported by both UFS host and device */ - if (ufshcd_get_max_pwr_mode(hba)) + ret =3D ufshcd_get_max_pwr_mode(hba); + if (ret) dev_err(hba->dev, "%s: Failed getting max supported power mode\n", __func__); --=20 2.26.0