summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenet Clark <benetc@codeaurora.org>2014-10-03 12:53:32 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:34:49 -0700
commitfedf3e02ffc2265f11857608c212ff885d79c003 (patch)
tree69a317d950be66d78f80b6eb5147ef019e931ae0
parent8193262f44db65b8251316827f536b00eebf105b (diff)
msm: mdss: Set backlight pwm level to 0 before disabling during BLANK
Currently, when BLANK is called to turn off the panel during suspend, we set the backlight to level 0. The backlight pwm driver interprets this as requiring pwm_disable() only. However, in order to prevent any garbage data from being displayed on the panel during resume, we should set the pwm level to 0 before disabling the pwm backlight node. Change-Id: Ifc12c49cbfcac76a5ca07e8c5e16b0fd023e1eeb CRs-Fixed: 711782 Signed-off-by: Benet Clark <benetc@codeaurora.org>
-rw-r--r--drivers/video/fbdev/msm/mdss_dsi_panel.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_dsi_panel.c b/drivers/video/fbdev/msm/mdss_dsi_panel.c
index 6b46eef793af..8e7707bb13b6 100644
--- a/drivers/video/fbdev/msm/mdss_dsi_panel.c
+++ b/drivers/video/fbdev/msm/mdss_dsi_panel.c
@@ -61,8 +61,14 @@ static void mdss_dsi_panel_bklt_pwm(struct mdss_dsi_ctrl_pdata *ctrl, int level)
}
if (level == 0) {
- if (ctrl->pwm_enabled)
+ if (ctrl->pwm_enabled) {
+ ret = pwm_config_us(ctrl->pwm_bl, level,
+ ctrl->pwm_period);
+ if (ret)
+ pr_err("%s: pwm_config_us() failed err=%d.\n",
+ __func__, ret);
pwm_disable(ctrl->pwm_bl);
+ }
ctrl->pwm_enabled = 0;
return;
}