disp: msm: dsi: fix gpio warning message
At present, the sim panels and physical panels booting up as sim panels have a call flow issue causing reset gpio to be set in the panel reset sequence even without valid reset gpio. This causes GPIO warnings as it tries to set value for invalid reset GPIO. The following change fixes these GPIO warnings, by checking valid reset GPIO before setting value. Change-Id: Id8f54a563c61dd3d244d31b10081042e376287d4 Signed-off-by: Santosh Kumar Aenugu <santoshkumar@codeaurora.org>
这个提交包含在:
@@ -247,6 +247,9 @@ static int dsi_panel_reset(struct dsi_panel *panel)
|
||||
struct dsi_panel_reset_config *r_config = &panel->reset_config;
|
||||
int i;
|
||||
|
||||
if (!gpio_is_valid(r_config->reset_gpio))
|
||||
goto skip_reset_gpio;
|
||||
|
||||
if (gpio_is_valid(panel->reset_config.disp_en_gpio)) {
|
||||
rc = gpio_direction_output(panel->reset_config.disp_en_gpio, 1);
|
||||
if (rc) {
|
||||
@@ -274,6 +277,7 @@ static int dsi_panel_reset(struct dsi_panel *panel)
|
||||
(r_config->sequence[i].sleep_ms * 1000) + 100);
|
||||
}
|
||||
|
||||
skip_reset_gpio:
|
||||
if (gpio_is_valid(panel->bl_config.en_gpio)) {
|
||||
rc = gpio_direction_output(panel->bl_config.en_gpio, 1);
|
||||
if (rc)
|
||||
|
在新工单中引用
屏蔽一个用户