mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
drm/panel: Don't init gpio value at probe
When enable display on loader, init gpio would change gpio status, that would make screen flash. Change-Id: I4b69a8d3d83c5bef09014c2134abaee6522a7046 Signed-off-by: Mark Yao <mark.yao@rock-chips.com> Signed-off-by: Sandy Huang <hjc@rock-chips.com>
This commit is contained in:
@@ -252,7 +252,7 @@ static int panel_simple_unprepare(struct drm_panel *panel)
|
||||
if (!p->prepared)
|
||||
return 0;
|
||||
|
||||
gpiod_set_value_cansleep(p->enable_gpio, 0);
|
||||
gpiod_direction_output(p->enable_gpio, 0);
|
||||
|
||||
panel_simple_regulator_disable(panel);
|
||||
|
||||
@@ -278,7 +278,7 @@ static int panel_simple_prepare(struct drm_panel *panel)
|
||||
return err;
|
||||
}
|
||||
|
||||
gpiod_set_value_cansleep(p->enable_gpio, 1);
|
||||
gpiod_direction_output(p->enable_gpio, 1);
|
||||
|
||||
if (p->desc->delay.prepare)
|
||||
msleep(p->desc->delay.prepare);
|
||||
@@ -376,7 +376,7 @@ static int panel_simple_probe(struct device *dev, const struct panel_desc *desc)
|
||||
return PTR_ERR(panel->supply);
|
||||
|
||||
panel->enable_gpio = devm_gpiod_get_optional(dev, "enable",
|
||||
GPIOD_OUT_LOW);
|
||||
GPIOD_ASIS);
|
||||
if (IS_ERR(panel->enable_gpio)) {
|
||||
err = PTR_ERR(panel->enable_gpio);
|
||||
if (err != -EPROBE_DEFER)
|
||||
|
||||
Reference in New Issue
Block a user