]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: ufs-mediatek: Prevent host hang by setting CLK_CG early
authorPeter Wang <peter.wang@mediatek.com>
Thu, 23 Jun 2022 03:50:47 +0000 (11:50 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 28 Jun 2022 03:17:36 +0000 (23:17 -0400)
commita30875450b297c946985720761dc5588be358a69
treef5432a979cf7a85fc6fa75cac3816d690f9a8d3d
parentdd8d07c01d5f55415879f9324188758d3a5b90ba
scsi: ufs: ufs-mediatek: Prevent host hang by setting CLK_CG early

Some UFSHCI hosts in MediaTek UFS platform need workaround to prevent host
hang issue by setting CLK_CG bit before host is enabled.

This operation shall have no side effect on those platforms which do not
support this bit.

Link: https://lore.kernel.org/r/20220623035052.18802-4-stanley.chu@mediatek.com
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Peter Wang <peter.wang@mediatek.com>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufs-mediatek.c
drivers/ufs/host/ufs-mediatek.h