From: Ondrej Jirman Date: Wed, 1 Jul 2020 16:29:26 +0000 (+0200) Subject: drm/panel: st7703: Assert reset prior to powering down the regulators X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c8a753484066a6382d2539d3dca1428164a682bf;p=linux.git 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 Reviewed-by: Linus Walleij Tested-by: Guido Günther Reviewed-by: Guido Günther Signed-off-by: Sam Ravnborg Link: https://patchwork.freedesktop.org/patch/msgid/20200701162928.1638874-12-megous@megous.com --- diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7703.c b/drivers/gpu/drm/panel/panel-sitronix-st7703.c index 7750179bca607..8996ced2b721a 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;