From 6ed9f4a3d3398ad08718c4baf143475027774d6e Mon Sep 17 00:00:00 2001 From: Yuan Zhao Date: Fri, 11 Oct 2019 10:26:51 +0800 Subject: [PATCH] disp: msm: dsi: Config panel test pin to input mode when panel off The pin was configured to input mode when panel on. But if continuous splash was on, driver will not power on panel when booting up, the first time panel off, this gpio was the default mode or the UEFI config mode. Change-Id: Ib352343848ab38cab828cc10388b366aeac8905d Signed-off-by: Yuan Zhao --- msm/dsi/dsi_panel.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/msm/dsi/dsi_panel.c b/msm/dsi/dsi_panel.c index d37561c6a7..069f0f7f87 100644 --- a/msm/dsi/dsi_panel.c +++ b/msm/dsi/dsi_panel.c @@ -499,6 +499,13 @@ static int dsi_panel_power_off(struct dsi_panel *panel) if (gpio_is_valid(panel->reset_config.lcd_mode_sel_gpio)) gpio_set_value(panel->reset_config.lcd_mode_sel_gpio, 0); + if (gpio_is_valid(panel->panel_test_gpio)) { + rc = gpio_direction_input(panel->panel_test_gpio); + if (rc) + DSI_WARN("set dir for panel test gpio failed rc=%d\n", + rc); + } + rc = dsi_panel_set_pinctrl_state(panel, false); if (rc) { DSI_ERR("[%s] failed set pinctrl state, rc=%d\n", panel->name,