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

Commit 2fef1363 authored by Carl Vanderlip's avatar Carl Vanderlip
Browse files

msm: mdss: Allow AD register programming in AD calibration mode



When in AD calibration mode, AD should still be programmed even though all
other post processing features should be temporarily disabled.

Change-Id: I15ab36c657d9936386ff24cdd343711e29e157bb
Signed-off-by: default avatarCarl Vanderlip <carlv@codeaurora.org>
parent c4127fbe
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1529,6 +1529,9 @@ static int pp_dspp_setup(u32 disp_num, struct mdss_mdp_mixer *mixer)
		pp_sts_set_split_bits(&pp_sts->pgc_sts, pgc_config->flags);
	}

	pp_dspp_opmode_config(ctl, dspp_num, pp_sts, mdata->mdp_rev, &opmode);

flush_exit:
	if (ad_hw) {
		mutex_lock(&ad->lock);
		ad_flags = ad->reg_sts;
@@ -1543,8 +1546,6 @@ static int pp_dspp_setup(u32 disp_num, struct mdss_mdp_mixer *mixer)
		mutex_unlock(&ad->lock);
	}

	pp_dspp_opmode_config(ctl, dspp_num, pp_sts, mdata->mdp_rev, &opmode);
flush_exit:
	writel_relaxed(opmode, base + MDSS_MDP_REG_DSPP_OP_MODE);

	if (dspp_num == MDSS_MDP_DSPP3)