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 <jaegeuk@google.com>
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: I00fe1add360922559d7e227ef630f34d04a42958
fourteen
Jaegeuk Kim 5 years ago committed by Jenna
parent 39c1bc4f3f
commit e1e659c34b
  1. 1
      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;

Loading…
Cancel
Save