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

Commit b69408be authored by Tanmay Shah's avatar Tanmay Shah Committed by Gerrit - the friendly Code Review server
Browse files

fbdev/msm: Modify cdm block destroy sequence



Disable cdm block after disabling MDP timing engine,
as per hardware programming recommendation.

Change-Id: I64ee5e2d5669e7546c740e5acd67a9db640155dc
Signed-off-by: default avatarTanmay Shah <tanmay@codeaurora.org>
parent a0f7b85f
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -1097,13 +1097,6 @@ static int mdss_mdp_video_stop(struct mdss_mdp_ctl *ctl, int panel_power_state)
{
	int intfs_num, ret = 0;

	if (ctl->cdm) {
		if (!mdss_mdp_cdm_destroy(ctl->cdm))
			mdss_mdp_ctl_write(ctl,
				MDSS_MDP_REG_CTL_FLUSH, BIT(26));
		ctl->cdm = NULL;
	}

	intfs_num = ctl->intf_num - MDSS_MDP_INTF0;
	ret = mdss_mdp_video_intfs_stop(ctl, ctl->panel_data, intfs_num);
	if (IS_ERR_VALUE(ret)) {
@@ -1111,6 +1104,12 @@ static int mdss_mdp_video_stop(struct mdss_mdp_ctl *ctl, int panel_power_state)
		return ret;
	}

	if (ctl->cdm) {
		if (!mdss_mdp_cdm_destroy(ctl->cdm))
			mdss_mdp_ctl_write(ctl,
				MDSS_MDP_REG_CTL_FLUSH, BIT(26));
		ctl->cdm = NULL;
	}
	MDSS_XLOG(ctl->num, ctl->vsync_cnt);

	mdss_mdp_ctl_reset(ctl, false);