diff options
| author | Dhaval Patel <pdhaval@codeaurora.org> | 2016-08-10 13:47:28 -0700 |
|---|---|---|
| committer | Dhaval Patel <pdhaval@codeaurora.org> | 2016-08-10 13:52:30 -0700 |
| commit | daa016439fa6fc3d01242e41ad5c9039d69e72c5 (patch) | |
| tree | 7247f63b54d4c38738eeb4e97458abd12c5b5639 /drivers/gpu | |
| parent | 1cb5d227fc22222de9ce94fb1bfc918adf92d885 (diff) | |
drm/dsi: turn off the wled backlight with panel power off
LAB/IBB regulator subsequent enable is failing when wled
backlight is left on with panel power off sequence. This
blocks the back to back atomic commit operation with device
open and close. Current change turns off the wled backlight
during panel power off sequence to unblock the back to back
atomic commit operation.
Change-Id: I47fb72be00fe8c1ac2234c04c58183de0e84e6be
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/msm/dsi-staging/dsi_panel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/dsi-staging/dsi_panel.c b/drivers/gpu/drm/msm/dsi-staging/dsi_panel.c index fbe6f1b22a29..2335c308551b 100644 --- a/drivers/gpu/drm/msm/dsi-staging/dsi_panel.c +++ b/drivers/gpu/drm/msm/dsi-staging/dsi_panel.c @@ -238,7 +238,6 @@ static int dsi_panel_power_off(struct dsi_panel *panel) if (rc) pr_err("[%s] failed to enable vregs, rc=%d\n", panel->name, rc); - /* TODO: backlight */ return rc; } static int dsi_panel_tx_cmd_set(struct dsi_panel *panel, @@ -1858,6 +1857,8 @@ int dsi_panel_pre_disable(struct dsi_panel *panel) mutex_lock(&panel->panel_lock); + /* TODO: hack to disable backlight; */ + led_trigger_event(panel->bl_config.wled, 0x0); rc = dsi_panel_tx_cmd_set(panel, DSI_CMD_SET_PRE_OFF); if (rc) { pr_err("[%s] failed to send DSI_CMD_SET_PRE_OFF cmds, rc=%d\n", |
