OSDN Git Service

msm: mdss: make sure backlight is off during suspend
authorPadmanabhan Komanduru <pkomandu@codeaurora.org>
Wed, 30 Dec 2015 11:45:53 +0000 (17:15 +0530)
committerDavid Keitel <dkeitel@codeaurora.org>
Thu, 24 Mar 2016 04:14:35 +0000 (21:14 -0700)
commit5b6725448a58eb13754c64c40648d86c8ea2f4bf
tree819c2bb1fa0a50a8b8fb7e70f0f7233c8de64685
parent45b00409c35788c603d0b69a90e2f856cb0093d9
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>
drivers/video/fbdev/msm/mdss_fb.c