Commit c8a75348 authored by Ondrej Jirman's avatar Ondrej Jirman Committed by Sam Ravnborg

drm/panel: st7703: Assert reset prior to powering down the regulators

The reset pin is inverted, so if we don't assert reset, the actual gpio
will be high and may keep driving the IO port of the panel.
Signed-off-by: default avatarOndrej Jirman <megous@megous.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Tested-by: default avatarGuido Günther <agx@sigxcpu.org>
Reviewed-by: default avatarGuido Günther <agx@sigxcpu.org>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200701162928.1638874-12-megous@megous.com
parent 43fc6db0
...@@ -415,6 +415,7 @@ static int st7703_unprepare(struct drm_panel *panel) ...@@ -415,6 +415,7 @@ static int st7703_unprepare(struct drm_panel *panel)
if (!ctx->prepared) if (!ctx->prepared)
return 0; return 0;
gpiod_set_value_cansleep(ctx->reset_gpio, 1);
regulator_disable(ctx->iovcc); regulator_disable(ctx->iovcc);
regulator_disable(ctx->vcc); regulator_disable(ctx->vcc);
ctx->prepared = false; ctx->prepared = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment