msm: mdss: Do not release all fences when going to doze mode

UI may update in doze mode and there may be tearing when going
from doze to unblank - with respect to synchronization, doze mode
must be treated as on.

Change-Id: I8635b0722bc6294f6850ab28ce43046f81ed49a5
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
This commit is contained in:
Naseer Ahmed 2014-10-14 15:49:43 -04:00 committed by David Keitel
parent 42633fc85d
commit 3a3f2ff5f4

View file

@ -1290,7 +1290,7 @@ static int mdss_fb_blank_sub(int blank_mode, struct fb_info *info,
ret = mfd->mdp.off_fnc(mfd);
if (ret)
mfd->panel_power_state = cur_power_state;
else
else if (mdss_panel_is_power_off(req_power_state))
mdss_fb_release_fences(mfd);
mfd->op_enable = true;
complete(&mfd->power_off_comp);