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>
这个提交包含在:
Santosh Kumar Aenugu
2021-05-20 20:21:34 -07:00
父节点 4a9b41b801
当前提交 8d9384423c
修改 2 个文件,包含 13 行新增7 行删除

查看文件

@@ -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)