diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2021-01-15 00:10:49 +0100 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2021-01-15 00:10:49 +0100 |
commit | 3814de27892f88d7bee46f434d386ada761fd4ba (patch) | |
tree | 0470c6d559ec46201e695664cfaef60ea541f4df /SOURCES/0001-drm-panel-st7703-Enter-sleep-after-display-off.patch | |
parent | d6cbdaa78bfe1ecf6aa6a95e743bcba390a2ae93 (diff) | |
download | kernel-fsync-3814de27892f88d7bee46f434d386ada761fd4ba.tar.gz kernel-fsync-3814de27892f88d7bee46f434d386ada761fd4ba.zip |
kernel 5.10.6
Diffstat (limited to 'SOURCES/0001-drm-panel-st7703-Enter-sleep-after-display-off.patch')
-rw-r--r-- | SOURCES/0001-drm-panel-st7703-Enter-sleep-after-display-off.patch | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/SOURCES/0001-drm-panel-st7703-Enter-sleep-after-display-off.patch b/SOURCES/0001-drm-panel-st7703-Enter-sleep-after-display-off.patch deleted file mode 100644 index 33e52fc..0000000 --- a/SOURCES/0001-drm-panel-st7703-Enter-sleep-after-display-off.patch +++ /dev/null @@ -1,41 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Ondrej Jirman <megous@megous.com> -Date: Fri, 26 Jun 2020 02:55:58 +0200 -Subject: [PATCH] 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 33611419059a..e771281eb547 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 - |