Merge "scsi: ufs-qcom: disable hibern8 during clk gating"

This commit is contained in:
Linux Build Service Account 2016-08-19 05:29:27 -07:00 committed by Gerrit - the friendly Code Review server
commit f0da3aae3b

View file

@ -1532,6 +1532,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_DELAYED_WORK(&gating->gate_work, ufshcd_gate_work);
INIT_WORK(&gating->ungate_work, ufshcd_ungate_work);