[PATCH 4/5] drm/panel: s6e88a0-ams452ef01: move display off to disable callback

From: Vladimir Bely

Date: Sun Nov 29 2026 - 08:00:48 EST


Currently the driver has no .disable callback and only sends
MIPI_DCS_SET_DISPLAY_OFF in unprepare(), after the DSI host has already
stopped the video stream. Because this is a video-mode AMOLED panel
without internal frame memory, leaving display-on active after video
stops produces ~160 ms of visible noise/stripes on every screen blank.

Add a .disable callback that sends display-off and waits 35 ms while
the video stream is still active, keeping sleep-in in unprepare().
Tested on Samsung Galaxy A3 (SM-A300F).

Signed-off-by: Vladimir Bely <vlwwwwww@xxxxxxxxx>
---
.../drm/panel/panel-samsung-s6e88a0-ams452ef01.c | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams452ef01.c b/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams452ef01.c
index a4063a5af..43502a3ea 100644
--- a/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams452ef01.c
+++ b/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams452ef01.c
@@ -82,8 +82,6 @@ static void s6e88a0_ams452ef01_off(struct s6e88a0_ams452ef01 *ctx)

dsi->mode_flags &= ~MIPI_DSI_MODE_LPM;

- mipi_dsi_dcs_set_display_off_multi(&dsi_ctx);
- mipi_dsi_msleep(&dsi_ctx, 35);
mipi_dsi_dcs_enter_sleep_mode_multi(&dsi_ctx);
mipi_dsi_msleep(&dsi_ctx, 120);
}
@@ -110,6 +108,19 @@ static int s6e88a0_ams452ef01_prepare(struct drm_panel *panel)
return 0;
}

+/* Blank the panel while the video stream still runs, it shows noise without */
+static int s6e88a0_ams452ef01_disable(struct drm_panel *panel)
+{
+ struct s6e88a0_ams452ef01 *ctx = to_s6e88a0_ams452ef01(panel);
+ struct mipi_dsi_multi_context dsi_ctx = { .dsi = ctx->dsi };
+
+ ctx->dsi->mode_flags &= ~MIPI_DSI_MODE_LPM;
+ mipi_dsi_dcs_set_display_off_multi(&dsi_ctx);
+ mipi_dsi_msleep(&dsi_ctx, 35);
+
+ return dsi_ctx.accum_err;
+}
+
static int s6e88a0_ams452ef01_unprepare(struct drm_panel *panel)
{
struct s6e88a0_ams452ef01 *ctx = to_s6e88a0_ams452ef01(panel);
@@ -156,6 +167,7 @@ static int s6e88a0_ams452ef01_get_modes(struct drm_panel *panel,
}

static const struct drm_panel_funcs s6e88a0_ams452ef01_panel_funcs = {
+ .disable = s6e88a0_ams452ef01_disable,
.unprepare = s6e88a0_ams452ef01_unprepare,
.prepare = s6e88a0_ams452ef01_prepare,
.get_modes = s6e88a0_ams452ef01_get_modes,
--
2.43.0