OSDN Git Service

msm: mdss: dsi: fix lcd mode selection gpio config when display is off
authorAravind Venkateswaran <aravindh@codeaurora.org>
Fri, 5 Aug 2016 00:23:00 +0000 (17:23 -0700)
committerGerrit - the friendly Code Review server <code-review@localhost>
Fri, 5 Aug 2016 00:37:29 +0000 (17:37 -0700)
When display is turned off, ensure that the lcd mode selection GPIO is
set to output LOW. This would prevent any current leakage from that GPIO
whenever display is off.

Change-Id: I91f636b2c1cc1890b4ca28f52e5190561bc5d927
CRs-Fixed: 1050785
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
drivers/video/fbdev/msm/mdss_dsi_panel.c

index 2e54f33..4bd705b 100644 (file)
@@ -389,8 +389,10 @@ int mdss_dsi_panel_reset(struct mdss_panel_data *pdata, int enable)
                }
                gpio_set_value((ctrl_pdata->rst_gpio), 0);
                gpio_free(ctrl_pdata->rst_gpio);
-               if (gpio_is_valid(ctrl_pdata->lcd_mode_sel_gpio))
+               if (gpio_is_valid(ctrl_pdata->lcd_mode_sel_gpio)) {
+                       gpio_set_value(ctrl_pdata->lcd_mode_sel_gpio, 0);
                        gpio_free(ctrl_pdata->lcd_mode_sel_gpio);
+               }
        }
 
 exit: