scsi: ufs: Fix possible unclocked access to auto hibern8 timer register
authorCan Guo <cang@codeaurora.org>
Thu, 5 Mar 2020 08:53:07 +0000 (00:53 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 10 Mar 2020 22:59:51 +0000 (18:59 -0400)
commitbe7594a424b4de7473b3d726635c3bf6aa19a86e
tree52f82b22d882581c2a3ec6a7cd7408e39e667ac8
parent03264ddde2453f6877a7d637d84068079632a3c5
scsi: ufs: Fix possible unclocked access to auto hibern8 timer register

Before access auto hibner8 timer register, make sure power and clock are
properly configured to avoid unclocked register access.

Link: https://lore.kernel.org/r/1583398391-14273-1-git-send-email-cang@codeaurora.org
Fixes: ba7af5ec5126 ("scsi: ufs: export ufshcd_auto_hibern8_update for vendor usage")
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c