build/patch/kernel/archive/sunxi-5.15/patches.megous/drm-panel-st7703-Fix-power-off-sequence.patch

41 lines
1.3 KiB
Diff
Raw Normal View History

From 9fb5bef8ed96e433c9a9282f0c64e84bd8f5f206 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megous@megous.com>
Date: Tue, 23 Nov 2021 18:45:28 +0100
Subject: [PATCH 476/478] drm: panel: st7703: Fix power off sequence
After issuing SLEEP IN, it's necessary to let the controller complete
the blanking sequence and drain the charge from the panel. (According
to the datasheet.)
Signed-off-by: Ondrej Jirman <megous@megous.com>
---
drivers/gpu/drm/panel/panel-sitronix-st7703.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7703.c b/drivers/gpu/drm/panel/panel-sitronix-st7703.c
index b463e4c5f238..af5f91ab997b 100644
--- a/drivers/gpu/drm/panel/panel-sitronix-st7703.c
+++ b/drivers/gpu/drm/panel/panel-sitronix-st7703.c
@@ -378,7 +378,7 @@ static int st7703_enable(struct drm_panel *panel)
return ret;
}
- /* Dsiplay on can be issued 120 msec after sleep out */
+ /* Display on can be issued 120 msec after sleep out */
msleep(120);
ret = mipi_dsi_dcs_set_display_on(dsi);
@@ -404,6 +404,9 @@ static int st7703_disable(struct drm_panel *panel)
if (ret < 0)
dev_err(ctx->dev, "Failed to enter sleep mode: %d\n", ret);
+ /* Display needs to be drained of charge, in order to work correctly on next power on. */
+ msleep(120);
+
return 0;
}
--
2.35.3