msm: mdss: keep tear check enabled in LP1 power state

Prevent driver from disabling the tear check when
going to LP1 state. This is needed for certain
panels in cases where there are more than one
frame update in LP1 state.

Change-Id: Ib80f06e0609d9d49584118504adf87da44455563
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
This commit is contained in:
Ingrid Gallardo 2016-01-08 17:12:16 -08:00 committed by David Keitel
parent 5036fc2482
commit 43bddb5b6c

View file

@ -2452,7 +2452,10 @@ int mdss_mdp_cmd_ctx_stop(struct mdss_mdp_ctl *ctl,
mdss_mdp_resource_control(ctl, MDP_RSRC_CTL_EVENT_STOP);
flush_work(&ctx->pp_done_work);
mdss_mdp_tearcheck_enable(ctl, false);
if (mdss_panel_is_power_off(panel_power_state) ||
mdss_panel_is_power_on_ulp(panel_power_state))
mdss_mdp_tearcheck_enable(ctl, false);
if (mdss_panel_is_power_on(panel_power_state)) {
pr_debug("%s: intf stopped with panel on\n", __func__);