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

Commit ae1ede30 authored by Venkat Gopalakrishnan's avatar Venkat Gopalakrishnan
Browse files

scsi: ufs-qcom: disable hibern8 during clk gating



There is no need to send hibern8 enter/exit during clk gate/ungate
when auto hibern8 is supported as that would be handled by the
controller, thus remove UFSHCD_CAP_HIBERN8_WITH_CLK_GATING cap.

Change-Id: Ica50975082b5071fafaa6a318c38e97afb7ba700
Signed-off-by: default avatarVenkat Gopalakrishnan <venkatg@codeaurora.org>
parent c5984ec8
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1503,6 +1503,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);