From e1e659c34bd1f14c82b47030bbc3d2fb023504c3 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Thu, 16 Apr 2020 16:59:09 -0700 Subject: [PATCH] scsi: ufs: disable clocks all the time when autohibern8 supports Matched with Pixel-4.19, we can disable clocks and links if autohibern8 is on. The patch fixes power regression, 10~15mW, caused by the below two patches. Bug: 151181812 Fixes: 92967c0c2ecb "scsi: ufs: set autohibern8 timer regardless of hibern8_on_idle" Fixes: 5a57ae46dd6f "scsi: ufs: disable hibern8_on_idle" Signed-off-by: Jaegeuk Kim Signed-off-by: Alexander Winkowski Change-Id: I00fe1add360922559d7e227ef630f34d04a42958 --- drivers/scsi/ufs/ufshcd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 8d7f5095a93f..18c770d464b0 100755 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -3430,6 +3430,7 @@ static void ufshcd_init_hibern8_on_idle(struct ufs_hba *hba) * auto hibern8 is supported */ hba->caps &= ~UFSHCD_CAP_HIBERN8_ENTER_ON_IDLE; + hba->hibern8_on_idle.is_enabled = true; return; } else { hba->hibern8_on_idle.delay_ms = 10;