msm: mdss: restore backlight level when recovering from ESD attack
When ESD related panel failures are detected, the recovery process involves blanking and unblanking the panel. In such cases, it is required to restore the backlight level as there may not be an explicit call from the userspace to update the backlight. Change-Id: Idd84a628cf2a1e37121b94d3c5cc11d45a78fdab Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
This commit is contained in:
parent
a9416e66c1
commit
0fae3b24d9
1 changed files with 2 additions and 0 deletions
|
@ -1241,6 +1241,8 @@ void mdss_fb_set_backlight(struct msm_fb_data_type *mfd, u32 bkl_lvl)
|
|||
mfd->panel_info->cont_splash_enabled) {
|
||||
mfd->unset_bl_level = bkl_lvl;
|
||||
return;
|
||||
} else if (mdss_fb_is_power_on(mfd) && mfd->panel_info->panel_dead) {
|
||||
mfd->unset_bl_level = mfd->bl_level;
|
||||
} else {
|
||||
mfd->unset_bl_level = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue