msm: mdss: fix screen mess during adb shell stop/start

Reset backlight before blank to prevent backlight from
enabling ahead of unblank. For some special cases like
adb shell stop/start.

Change-Id: I417b47f95ef804a156779cf696e6e610cff9f059
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
This commit is contained in:
Ray Zhang 2015-12-02 17:41:48 +08:00 committed by David Keitel
parent fa7db29c1f
commit c7cc278f25

View file

@ -2629,6 +2629,12 @@ static int mdss_fb_release_all(struct fb_info *info, bool release_all)
pr_err("PP release failed ret %d\n", ret); pr_err("PP release failed ret %d\n", ret);
} }
/* reset backlight before blank to prevent backlight from
* enabling ahead of unblank. for some special cases like
* adb shell stop/start.
*/
mdss_fb_set_backlight(mfd, 0);
ret = mdss_fb_blank_sub(FB_BLANK_POWERDOWN, info, ret = mdss_fb_blank_sub(FB_BLANK_POWERDOWN, info,
mfd->op_enable); mfd->op_enable);
if (ret) { if (ret) {