Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Ondrej Jirman and committed by
Sam Ravnborg
c8a75348 43fc6db0

+1
+1
drivers/gpu/drm/panel/panel-sitronix-st7703.c
··· 415 415 if (!ctx->prepared) 416 416 return 0; 417 417 418 + gpiod_set_value_cansleep(ctx->reset_gpio, 1); 418 419 regulator_disable(ctx->iovcc); 419 420 regulator_disable(ctx->vcc); 420 421 ctx->prepared = false;