From patchwork Wed Jun 15 12:12:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 12882252 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1AED3C43334 for ; Wed, 15 Jun 2022 12:15:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xzR28FoYkyeY/9inO7ZsBcd5MFeq43n+KZhoAARt3mY=; b=F7MnRYtzv2z0eX Ky82SLJX7S9dxAQTRBL7LMXpBsvlVlR0MQguhwSSkSLXAnwFjW6dAaxbL5o9jaxQzLYYx6NRJK3B8 IyxP5jKOquOnHVbU3R89ePGZctoCaRoCAdx6+aZi9f2WAtG/xj14heQSaFPGja7GbJTqao/Gka0eh zA7wIo7UrEk7hxBfNfi+heYSpej+kK+rwV+sQD9Y7XoWw/8EfGJiQE62105f4CYUECns2KVzCxyxW p+BKDO2TQBsTSUsoolW687Qh4gnqi/TGcGJZiYWi2LxHopgT0qEQRwc8pPcWTFH/vxUDQx8bcfruo Ahyg5JJxX+FyyG+Jm0kA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1Rvq-00EPiR-Fd; Wed, 15 Jun 2022 12:15:34 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1Rvc-00EPcO-Ar for linux-phy@lists.infradead.org; Wed, 15 Jun 2022 12:15:23 +0000 Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220615121514epoutp04901e0d42d50a2548ad53f0e6e5f6f8dc~4ylGTXX-M1956219562epoutp04k for ; Wed, 15 Jun 2022 12:15:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220615121514epoutp04901e0d42d50a2548ad53f0e6e5f6f8dc~4ylGTXX-M1956219562epoutp04k DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1655295314; bh=rt7zu6YaW3JrRH+QsNmwSsIeJCoaGLY0mVqfGMMxmHU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T+woY1plLl9c7cv1MARO95AlZCOKPWpnMGvf5opotRToezvDjQnHmEK2xHwl0loTZ 00TsjdS01vYWFGULRANLA9X6RUbu8g2KkILl+p+fWsoYk6k5dt5n6B/UBpJBFyyl86 hPFbhHD77C5VnYbfT3SKc6Jm1JQF0GpLwbCrRY38= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20220615121514epcas5p2c33b9729b5c3174c189e152b931d8e59~4ylF_z9su1721917219epcas5p2D; Wed, 15 Jun 2022 12:15:14 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.182]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4LNPQ81mBjz4x9Pp; Wed, 15 Jun 2022 12:15:12 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 37.85.09827.05DC9A26; Wed, 15 Jun 2022 21:15:12 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20220615121511epcas5p2d5afbc65ba52aa74cd18834ba771f718~4ylDjvPLJ0984109841epcas5p22; Wed, 15 Jun 2022 12:15:11 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220615121511epsmtrp2657511d404b22246222217d412ea7019~4ylDi6gD00134501345epsmtrp2z; Wed, 15 Jun 2022 12:15:11 +0000 (GMT) X-AuditID: b6c32a4a-b51ff70000002663-83-62a9cd503179 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 77.72.08924.F4DC9A26; Wed, 15 Jun 2022 21:15:11 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220615121509epsmtip27245aa9e522984cb1a68b3a6b8928371~4ylBvNRxz0845808458epsmtip2h; Wed, 15 Jun 2022 12:15:09 +0000 (GMT) From: Alim Akhtar To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, linux-phy@lists.infradead.org Cc: beanhuo@micron.com, krzysztof.kozlowski+dt@linaro.org, avri.altman@wdc.com, bvanassche@acm.org, martin.petersen@oracle.com, chanho61.park@samsung.com, linux-samsung-soc@vger.kernel.org, Alim Akhtar Subject: [PATCH 2/3] ufs: host: ufs-exynos: use already existing define Date: Wed, 15 Jun 2022 17:42:03 +0530 Message-Id: <20220615121204.16642-2-alim.akhtar@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220615121204.16642-1-alim.akhtar@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOKsWRmVeSWpSXmKPExsWy7bCmhm7A2ZVJBr9ncVo8mLeNzeLlz6ts Fgcfd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mAtHAw1rO089fFGV/fe9U1abkkG/nap01 H8oosRRnJBpqMRcVJwIA/JPDuc8CAAA= X-CMS-MailID: 20220615121511epcas5p2d5afbc65ba52aa74cd18834ba771f718 X-Msg-Generator: CA CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220615121511epcas5p2d5afbc65ba52aa74cd18834ba771f718 References: <20220615121204.16642-1-alim.akhtar@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220615_051520_802751_FD17969F X-CRM114-Status: GOOD ( 13.76 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org UFS core already uses RX_MIN_ACTIVATETIME_CAPABILITY macro, let's use the same in driver as well instead of having a different macro name for the same offset. Signed-off-by: Alim Akhtar Reviewed-by: Chanho Park --- drivers/ufs/host/ufs-exynos.c | 5 +++-- include/ufs/unipro.h | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/ufs/host/ufs-exynos.c b/drivers/ufs/host/ufs-exynos.c index 04728b5da040..f971569bafc7 100644 --- a/drivers/ufs/host/ufs-exynos.c +++ b/drivers/ufs/host/ufs-exynos.c @@ -651,8 +651,9 @@ static void exynos_ufs_config_phy_cap_attr(struct exynos_ufs *ufs) if (attr->rx_min_actv_time_cap) ufshcd_dme_set(hba, - UIC_ARG_MIB_SEL(RX_MIN_ACTIVATETIME_CAP, - i), attr->rx_min_actv_time_cap); + UIC_ARG_MIB_SEL( + RX_MIN_ACTIVATETIME_CAPABILITY, i), + attr->rx_min_actv_time_cap); if (attr->rx_hibern8_time_cap) ufshcd_dme_set(hba, diff --git a/include/ufs/unipro.h b/include/ufs/unipro.h index 0521f887e3ac..ade92e8d3676 100644 --- a/include/ufs/unipro.h +++ b/include/ufs/unipro.h @@ -69,7 +69,6 @@ #define RX_HS_G2_PREP_LENGTH_CAP 0x0096 #define RX_HS_G3_PREP_LENGTH_CAP 0x0097 #define RX_ADV_GRANULARITY_CAP 0x0098 -#define RX_MIN_ACTIVATETIME_CAP 0x008F #define RX_HIBERN8TIME_CAP 0x0092 #define RX_ADV_HIBERN8TIME_CAP 0x0099 #define RX_ADV_MIN_ACTIVATETIME_CAP 0x009A