summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPadmanabhan Komanduru <pkomandu@codeaurora.org>2015-12-30 17:15:53 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:14:35 -0700
commit5b6725448a58eb13754c64c40648d86c8ea2f4bf (patch)
tree819c2bb1fa0a50a8b8fb7e70f0f7233c8de64685
parent45b00409c35788c603d0b69a90e2f856cb0093d9 (diff)
msm: mdss: make sure backlight is off during suspend
The backlight of the display panel will not get turned off during suspend if there are no display commits between suspend/resume since allow_bl_update will only be set to 'true' after first valid display commit after resume. This is possible for power off charging use-case where there will be only one display commit initially and later just the content of the buffer gets updated without anymore display commits across suspend/resume. Make sure the backlight is turned off during suspend by explicitly setting allow_bl_update to 'true' before trying to set the backlight to zero. Change-Id: I10f39e3913e5b40a61066f0bbce3a7a8f1a9441b Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
-rw-r--r--drivers/video/fbdev/msm/mdss_fb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/fbdev/msm/mdss_fb.c b/drivers/video/fbdev/msm/mdss_fb.c
index d4300338074e..5fc21ef47a5b 100644
--- a/drivers/video/fbdev/msm/mdss_fb.c
+++ b/drivers/video/fbdev/msm/mdss_fb.c
@@ -1672,6 +1672,7 @@ static int mdss_fb_blank_blank(struct msm_fb_data_type *mfd,
mdss_fb_stop_disp_thread(mfd);
mutex_lock(&mfd->bl_lock);
current_bl = mfd->bl_level;
+ mfd->allow_bl_update = true;
mdss_fb_set_backlight(mfd, 0);
mfd->allow_bl_update = false;
mfd->unset_bl_level = current_bl;