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

Commit 0da41a9a authored by Jayant Shekhar's avatar Jayant Shekhar Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: Remove restore config call in resume



MDSS driver calls restore_sec_cfg on every MDSS gdsc
toggle. This call is not required for targets where
SMMU settings are retained across MDSS power collapse.
Hence remove this call for those targets.

Change-Id: I09385aee16efca4007b3fc71a988e0de33bc5c65
Signed-off-by: default avatarJayant Shekhar <jshekhar@codeaurora.org>
parent 8f6bedaa
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1595,6 +1595,11 @@ static int mdss_mdp_gdsc_notifier_call(struct notifier_block *self,
	mdata = container_of(self, struct mdss_data_type, gdsc_cb);

	if (event & REGULATOR_EVENT_ENABLE) {
		/*
		 * As SMMU in low tier targets is not power collapsible,
		 * hence we don't need to restore sec configuration.
		 */
		if (!mdss_mdp_req_init_restore_cfg(mdata))
			__mdss_restore_sec_cfg(mdata);
	} else if (event & REGULATOR_EVENT_PRE_DISABLE) {
		pr_debug("mdss gdsc is getting disabled\n");