diff mbox series

[06/15] scsi: ufs: ufs-exynos: add refclkout_stop control

Message ID 20210709065711.25195-7-chanho61.park@samsung.com
State Superseded
Headers show
Series [01/15] scsi: ufs: add quirk to handle broken UIC command | expand

Commit Message

Chanho Park July 9, 2021, 6:57 a.m. UTC
This patch adds REFCLKOUT_STOP control to CLK_STOP_MASK. It can
en/disable reference clock out control for UFS device.

Signed-off-by: Chanho Park <chanho61.park@samsung.com>
---
 drivers/scsi/ufs/ufs-exynos.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Alim Akhtar July 14, 2021, 1:41 a.m. UTC | #1
Hi Chanho

> -----Original Message-----

> From: Chanho Park <chanho61.park@samsung.com>

> Sent: 09 July 2021 12:27

> To: Alim Akhtar <alim.akhtar@samsung.com>; James E . J . Bottomley

> <jejb@linux.ibm.com>; Martin K . Petersen <martin.petersen@oracle.com>

> Cc: Can Guo <cang@codeaurora.org>; Jaegeuk Kim <jaegeuk@kernel.org>;

> Kiwoong Kim <kwmad.kim@samsung.com>; Avri Altman

> <avri.altman@wdc.com>; Adrian Hunter <adrian.hunter@intel.com>;

> Christoph Hellwig <hch@infradead.org>; Bart Van Assche

> <bvanassche@acm.org>; jongmin jeong <jjmin.jeong@samsung.com>;

> Gyunghoon Kwon <goodjob.kwon@samsung.com>; linux-samsung-

> soc@vger.kernel.org; linux-scsi@vger.kernel.org; Chanho Park

> <chanho61.park@samsung.com>

> Subject: [PATCH 06/15] scsi: ufs: ufs-exynos: add refclkout_stop control

> 

> This patch adds REFCLKOUT_STOP control to CLK_STOP_MASK. It can

> en/disable reference clock out control for UFS device.

> 

> Signed-off-by: Chanho Park <chanho61.park@samsung.com>

> ---


Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>


>  drivers/scsi/ufs/ufs-exynos.c | 3 ++-

>  1 file changed, 2 insertions(+), 1 deletion(-)

> 

> diff --git a/drivers/scsi/ufs/ufs-exynos.c b/drivers/scsi/ufs/ufs-exynos.c

> index da02ad3b036c..78cc5bda0a1f 100644

> --- a/drivers/scsi/ufs/ufs-exynos.c

> +++ b/drivers/scsi/ufs/ufs-exynos.c

> @@ -49,10 +49,11 @@

>  #define HCI_ERR_EN_T_LAYER	0x84

>  #define HCI_ERR_EN_DME_LAYER	0x88

>  #define HCI_CLKSTOP_CTRL	0xB0

> +#define REFCLKOUT_STOP		BIT(4)

>  #define REFCLK_STOP		BIT(2)

>  #define UNIPRO_MCLK_STOP	BIT(1)

>  #define UNIPRO_PCLK_STOP	BIT(0)

> -#define CLK_STOP_MASK		(REFCLK_STOP |\

> +#define CLK_STOP_MASK		(REFCLKOUT_STOP | REFCLK_STOP |\

>  				 UNIPRO_MCLK_STOP |\

>  				 UNIPRO_PCLK_STOP)

>  #define HCI_MISC		0xB4

> --

> 2.32.0
diff mbox series

Patch

diff --git a/drivers/scsi/ufs/ufs-exynos.c b/drivers/scsi/ufs/ufs-exynos.c
index da02ad3b036c..78cc5bda0a1f 100644
--- a/drivers/scsi/ufs/ufs-exynos.c
+++ b/drivers/scsi/ufs/ufs-exynos.c
@@ -49,10 +49,11 @@ 
 #define HCI_ERR_EN_T_LAYER	0x84
 #define HCI_ERR_EN_DME_LAYER	0x88
 #define HCI_CLKSTOP_CTRL	0xB0
+#define REFCLKOUT_STOP		BIT(4)
 #define REFCLK_STOP		BIT(2)
 #define UNIPRO_MCLK_STOP	BIT(1)
 #define UNIPRO_PCLK_STOP	BIT(0)
-#define CLK_STOP_MASK		(REFCLK_STOP |\
+#define CLK_STOP_MASK		(REFCLKOUT_STOP | REFCLK_STOP |\
 				 UNIPRO_MCLK_STOP |\
 				 UNIPRO_PCLK_STOP)
 #define HCI_MISC		0xB4