Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c599582 authored by Can Guo's avatar Can Guo Committed by Ashwini Muduganti
Browse files

scsi: ufs: enable hibern8 during clk gating



This change enables hibern8 during clock gating to let driver issue
hibern8 enter during clock gating before power collapse and issue hibern8
exit during clock un-gate after power un-collapse regardless of auto
hibern8 support.

Change-Id: Ib8cb4cb010f673eda7d86eb456706bf2c8fb4676
Signed-off-by: default avatarCan Guo <cang@codeaurora.org>
parent d61a044a
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -2478,13 +2478,6 @@ 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);
	/*