Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: ufs: host: ufs-exynos: Add mphy apb clock mask

Bit[3] of HCI_CLKSTOP_CTRL register is for enabling/disabling MPHY APB
clock. Lets add it to CLK_STOP_MASK, so that the same can be controlled
during clock masking/unmasking.

Link: https://lore.kernel.org/r/20220610104119.66401-6-alim.akhtar@samsung.com
Tested-by: Chanho Park <chanho61.park@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>

authored by

Alim Akhtar and committed by
Martin K. Petersen
daa782a5 ea83df8e

+2 -1
+2 -1
drivers/ufs/host/ufs-exynos.c
··· 52 52 #define HCI_ERR_EN_DME_LAYER 0x88 53 53 #define HCI_CLKSTOP_CTRL 0xB0 54 54 #define REFCLKOUT_STOP BIT(4) 55 + #define MPHY_APBCLK_STOP BIT(3) 55 56 #define REFCLK_STOP BIT(2) 56 57 #define UNIPRO_MCLK_STOP BIT(1) 57 58 #define UNIPRO_PCLK_STOP BIT(0) 58 59 #define CLK_STOP_MASK (REFCLKOUT_STOP | REFCLK_STOP |\ 59 - UNIPRO_MCLK_STOP |\ 60 + UNIPRO_MCLK_STOP | MPHY_APBCLK_STOP|\ 60 61 UNIPRO_PCLK_STOP) 61 62 #define HCI_MISC 0xB4 62 63 #define REFCLK_CTRL_EN BIT(7)