aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorOndrej Jirman <megous@megous.com>2020-07-01 18:29:26 +0200
committerSam Ravnborg <sam@ravnborg.org>2020-07-01 19:25:50 +0200
commitc8a753484066a6382d2539d3dca1428164a682bf (patch)
tree21ee380311004651beb77ff88db34ad8baffd806
parentdrm/panel: st7703: Enter sleep after display off (diff)
downloadwireguard-linux-c8a753484066a6382d2539d3dca1428164a682bf.tar.xz
wireguard-linux-c8a753484066a6382d2539d3dca1428164a682bf.zip
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: Ondrej Jirman <megous@megous.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Tested-by: Guido Günther <agx@sigxcpu.org> Reviewed-by: Guido Günther <agx@sigxcpu.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20200701162928.1638874-12-megous@megous.com
-rw-r--r--drivers/gpu/drm/panel/panel-sitronix-st7703.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7703.c b/drivers/gpu/drm/panel/panel-sitronix-st7703.c
index 7750179bca60..8996ced2b721 100644
--- a/drivers/gpu/drm/panel/panel-sitronix-st7703.c
+++ b/drivers/gpu/drm/panel/panel-sitronix-st7703.c
@@ -415,6 +415,7 @@ static int st7703_unprepare(struct drm_panel *panel)
if (!ctx->prepared)
return 0;
+ gpiod_set_value_cansleep(ctx->reset_gpio, 1);
regulator_disable(ctx->iovcc);
regulator_disable(ctx->vcc);
ctx->prepared = false;