scsi: ufs: host: ufs-exynos: Use already existing definition
authorAlim Akhtar <alim.akhtar@samsung.com>
Wed, 15 Jun 2022 12:12:03 +0000 (17:42 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 17 Jun 2022 01:47:55 +0000 (21:47 -0400)
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.

Link: https://lore.kernel.org/r/20220615121204.16642-2-alim.akhtar@samsung.com
Reviewed-by: Chanho Park <chanho61.park@samsung.com>
Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufs-exynos.c
include/ufs/unipro.h

index 04728b5..f971569 100644 (file)
@@ -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,
index 0521f88..ade92e8 100644 (file)
@@ -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