]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: Introduce ufshcd_clkgate_delay_set()
authorBart Van Assche <bvanassche@acm.org>
Tue, 19 Apr 2022 22:58:04 +0000 (15:58 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Apr 2022 03:23:03 +0000 (23:23 -0400)
commita24c613ca174446cc246e6ed3fc4b4851eeb36a5
treea45dcc91ebfeb84b2803d5876f8c3c0b0e9b72cc
parent12b6978a41e5553a63f517b0547d4dfa05793020
scsi: ufs: Introduce ufshcd_clkgate_delay_set()

Since the code to modify delay_ms while holding the host lock occurs twice,
introduce a function that performs this action.

Link: https://lore.kernel.org/r/20220419225811.4127248-22-bvanassche@acm.org
Tested-by: Bean Huo <beanhuo@micron.com>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs-mediatek.c
drivers/scsi/ufs/ufshcd.c
drivers/scsi/ufs/ufshcd.h