summaryrefslogtreecommitdiff
path: root/SOURCES/0010-drm-panel-st7703-Enter-sleep-after-display-off.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/0010-drm-panel-st7703-Enter-sleep-after-display-off.patch
downloadkernel-fsync-391fe055c943e33e9c191dbeeb21995c0d54ccd9.tar.gz
kernel-fsync-391fe055c943e33e9c191dbeeb21995c0d54ccd9.zip
kernel 5.7.8
Diffstat (limited to 'SOURCES/0010-drm-panel-st7703-Enter-sleep-after-display-off.patch')
-rw-r--r--SOURCES/0010-drm-panel-st7703-Enter-sleep-after-display-off.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/SOURCES/0010-drm-panel-st7703-Enter-sleep-after-display-off.patch b/SOURCES/0010-drm-panel-st7703-Enter-sleep-after-display-off.patch
new file mode 100644
index 0000000..8679628
--- /dev/null
+++ b/SOURCES/0010-drm-panel-st7703-Enter-sleep-after-display-off.patch
@@ -0,0 +1,41 @@
+From 7c9c58114d277e570f667ac670ef28725e51814e Mon Sep 17 00:00:00 2001
+From: Ondrej Jirman <megous@megous.com>
+Date: Fri, 26 Jun 2020 02:55:58 +0200
+Subject: [PATCH 10/13] drm/panel: st7703: Enter sleep after display off
+
+The datasheet suggests to issue sleep in after display off
+as a part of the panel's shutdown sequence.
+
+Signed-off-by: Ondrej Jirman <megous@megous.com>
+---
+ drivers/gpu/drm/panel/panel-sitronix-st7703.c | 13 ++++++++++++-
+ 1 file changed, 12 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7703.c b/drivers/gpu/drm/panel/panel-sitronix-st7703.c
+index 33611419059a9..e771281eb5472 100644
+--- a/drivers/gpu/drm/panel/panel-sitronix-st7703.c
++++ b/drivers/gpu/drm/panel/panel-sitronix-st7703.c
+@@ -394,8 +394,19 @@ static int st7703_disable(struct drm_panel *panel)
+ {
+ struct st7703 *ctx = panel_to_st7703(panel);
+ struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev);
++ int ret;
++
++ ret = mipi_dsi_dcs_set_display_off(dsi);
++ if (ret < 0)
++ DRM_DEV_ERROR(ctx->dev,
++ "Failed to turn off the display: %d\n", ret);
+
+- return mipi_dsi_dcs_set_display_off(dsi);
++ ret = mipi_dsi_dcs_enter_sleep_mode(dsi);
++ if (ret < 0)
++ DRM_DEV_ERROR(ctx->dev,
++ "Failed to enter sleep mode: %d\n", ret);
++
++ return 0;
+ }
+
+ static int st7703_unprepare(struct drm_panel *panel)
+--
+2.26.2
+