scsi: ufs-mediatek: Fix incorrect time to wait link status
authorStanley Chu <stanley.chu@mediatek.com>
Sun, 9 Aug 2020 05:57:02 +0000 (13:57 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 18 Aug 2020 01:53:37 +0000 (21:53 -0400)
commit215d326702516366a8dfa9624b67ba0761c22b86
tree85395608116653c9969b6094b930db7b1ea5c0b1
parent93b6c5db06028a3b55122bbb74d0715dd8ca4ae0
scsi: ufs-mediatek: Fix incorrect time to wait link status

Fix incorrect calculation of "ms" based waiting time in function
ufs_mtk_setup_clocks().

Link: https://lore.kernel.org/r/20200809055702.20140-1-stanley.chu@mediatek.com
Fixes: 9006e3986f66 ("scsi: ufs-mediatek: Do not gate clocks if auto-hibern8 is not entered yet")
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs-mediatek.c