summaryrefslogtreecommitdiff
path: root/SOURCES/0011-drm-panel-st7703-Assert-reset-prior-to-powering-down.patch
diff options
context:
space:
mode:
authorSentry <sentry@Sentry-Desktop-Fedora.local>2020-07-14 15:58:43 +0200
committerJan200101 <sentrycraft123@gmail.com>2020-12-05 19:40:07 +0100
commit391fe055c943e33e9c191dbeeb21995c0d54ccd9 (patch)
tree04bbfbe91a73cc0d47c2d70235c8ca365eaa9c3d /SOURCES/0011-drm-panel-st7703-Assert-reset-prior-to-powering-down.patch
downloadkernel-fsync-391fe055c943e33e9c191dbeeb21995c0d54ccd9.tar.gz
kernel-fsync-391fe055c943e33e9c191dbeeb21995c0d54ccd9.zip
kernel 5.7.8
Diffstat (limited to 'SOURCES/0011-drm-panel-st7703-Assert-reset-prior-to-powering-down.patch')
-rw-r--r--SOURCES/0011-drm-panel-st7703-Assert-reset-prior-to-powering-down.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/SOURCES/0011-drm-panel-st7703-Assert-reset-prior-to-powering-down.patch b/SOURCES/0011-drm-panel-st7703-Assert-reset-prior-to-powering-down.patch
new file mode 100644
index 0000000..f587190
--- /dev/null
+++ b/SOURCES/0011-drm-panel-st7703-Assert-reset-prior-to-powering-down.patch
@@ -0,0 +1,29 @@
+From f290f11b42df0d9d42679b93bb6a488f9e12e00d Mon Sep 17 00:00:00 2001
+From: Ondrej Jirman <megous@megous.com>
+Date: Fri, 26 Jun 2020 02:55:59 +0200
+Subject: [PATCH 11/13] 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>
+---
+ drivers/gpu/drm/panel/panel-sitronix-st7703.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7703.c b/drivers/gpu/drm/panel/panel-sitronix-st7703.c
+index e771281eb5472..92930e1275592 100644
+--- a/drivers/gpu/drm/panel/panel-sitronix-st7703.c
++++ b/drivers/gpu/drm/panel/panel-sitronix-st7703.c
+@@ -416,6 +416,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;
+--
+2.26.2
+