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: 582171 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D49AC43334 for ; Wed, 15 Jun 2022 12:15:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345559AbiFOMPV (ORCPT ); Wed, 15 Jun 2022 08:15:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238373AbiFOMPR (ORCPT ); Wed, 15 Jun 2022 08:15:17 -0400 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8843F12764 for ; Wed, 15 Jun 2022 05:15:16 -0700 (PDT) Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220615121514epoutp04c24b9b4326a6d97d621c3eae48a5d906~4ylGaGO882368723687epoutp04P for ; Wed, 15 Jun 2022 12:15:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220615121514epoutp04c24b9b4326a6d97d621c3eae48a5d906~4ylGaGO882368723687epoutp04P 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 FgcfdrJYTPvwk9ni8n5ti74XD5ktNj2+xmpxedccNosJq76xWMw4v4/Jovv6DjaL5cf/MTnw eFy+4u1x59oeNo/NS+o9vq/vYPP4+PQWi0ffllWMHp83yXm0H+hmCuCIyrbJSE1MSS1SSM1L zk/JzEu3VfIOjneONzUzMNQ1tLQwV1LIS8xNtVVy8QnQdcvMAbpVSaEsMacUKBSQWFyspG9n U5RfWpKqkJFfXGKrlFqQklNgUqBXnJhbXJqXrpeXWmJlaGBgZApUmJCdcfPxWqaCJdwVvx4u YW1g3MbZxcjJISFgIjHl6HnGLkYuDiGB3YwSn9Z/YIZwPjFK9M+6xgZSJSTwmVHi4jwPmI5l WzawQRTtYpSY/vIUVHsLk8SfMzeYQKrYBLQl7k7fwgSSEBFoZpQ42LELzGEWeMko0f7kAiNI lbCAu8TzpfvYQWwWAVWJTSeWs4LYvAI2EkcmfGaC2CcvsXrDAaCjODg4BWwlzjy0AJkjIdDK IdG0/hxUjYvEl+tzGSFsYYlXx7ewQ9hSEp/f7WUD6ZUQ8JBY9EcKIpwh8Xb5eqhye4kDV+aw gJQwC2hKrN+lDxJmFuCT6P39hAmik1eio00IolpVovndVRYIW1piYnc3K8zw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5yfu4mRnAAa2ntYNyz6oPeIUYmDsZDjBIc zEoivGbBK5OEeFMSK6tSi/Lji0pzUosPMUpzsCiJ817oOhkvJJCeWJKanZpakFoEk2Xi4JRq YHKdcvNhvXjc1LW6/+bqKU5Lf/M7wdRd7tWuZqb+/Pibt+cHbzA0Oh3w1/1UosOMljImp6nV N7wKP2+ao1vPdMElKTrTW4lh4RddlYdJ7rt1DxyU/r77Y/gJhVjleQ5u66Pm6nGK7duTYFYS s/bt3zMztzmIt4QvfDN/dp3hm42bPXyuKZvsE7/sr3rjrOghjke3bv/dMy3/9fcFFe9rUh9V LnjhJcF0gDVo9oJNu6Rc3k//4us4aVLbC/1iX85XB/qmiV87e+JBz8pOqf28VVMapi+rM5wp JbA/wWNh6rm++Vwi99+dEFUNfh3eEvUpLji6RPzmAtHAw1rO089fFGV/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> Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.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