mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
Merge "disp: msm: dsi: Config panel test pin to input mode when panel off"
This commit is contained in:
commit
21f22b1fc8
1 changed files with 7 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue