disp: msm: dsi: drive backlight enable gpio low during power off

Change drives the LCD panel backlight enable GPIO low during panel
power off sequence.

Change-Id: Icfd22cf8d5216fcff857bbeab9c183dfb02b83bd
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
This commit is contained in:
Satya Rama Aditya Pinapala
2020-06-15 11:32:12 -07:00
committed by Gerrit - the friendly Code Review server
parent e50c2562c7
commit 19c01f38bc

View File

@@ -4441,6 +4441,9 @@ int dsi_panel_pre_disable(struct dsi_panel *panel)
mutex_lock(&panel->panel_lock);
if (gpio_is_valid(panel->bl_config.en_gpio))
gpio_set_value(panel->bl_config.en_gpio, 0);
rc = dsi_panel_tx_cmd_set(panel, DSI_CMD_SET_PRE_OFF);
if (rc) {
DSI_ERR("[%s] failed to send DSI_CMD_SET_PRE_OFF cmds, rc=%d\n",