scsi: ufs: disable HIBERN8_WITH_CLK_GATING

We've got "hibern8 exit failed", and suspect this.

Bug: 132503365
Change-Id: I52ca7588dfe9ca47bd8832ef697dc853022fd3e7
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
fourteen
Jaegeuk Kim 6 years ago committed by Jenna
parent 01e389737f
commit 5d7a44ac31
  1. 7
      drivers/scsi/ufs/ufshcd.c

@ -2968,6 +2968,13 @@ static void ufshcd_init_clk_gating(struct ufs_hba *hba)
if (!ufshcd_is_clkgating_allowed(hba))
return;
/*
* Disable hibern8 during clk gating if
* auto hibern8 is supported
*/
if (ufshcd_is_auto_hibern8_supported(hba))
hba->caps &= ~UFSHCD_CAP_HIBERN8_WITH_CLK_GATING;
INIT_WORK(&gating->gate_work, ufshcd_gate_work);
INIT_WORK(&gating->ungate_work, ufshcd_ungate_work);
/*

Loading…
Cancel
Save