From: Vladimir Bely <vlwwwwww@gmail.com>
To: Neil Armstrong <neil.armstrong@linaro.org>,
Jessica Zhang <jesszhan0024@gmail.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>
Cc: David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Michael Srba <Michael.Srba@seznam.cz>,
dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org, Vladimir Bely <vlwwwwww@gmail.com>
Subject: [PATCH 2/3] drm/panel: s6e88a0-ams452ef01: move display off to disable callback
Date: Sun, 29 Nov 2026 03:25:11 +0300 [thread overview]
Message-ID: <20261129002512.993570-3-vlwwwwww@gmail.com> (raw)
In-Reply-To: <20261129002512.993570-1-vlwwwwww@gmail.com>
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@gmail.com>
---
.../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
next prev parent reply other threads:[~2026-11-29 0:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 0:25 [PATCH 0/3] drm/panel: s6e88a0-ams452ef01: prepare_prev_first, disable, and backlight support Vladimir Bely
2026-11-29 0:25 ` [PATCH 1/3] drm/panel: s6e88a0-ams452ef01: set prepare_prev_first Vladimir Bely
2026-11-29 0:25 ` Vladimir Bely [this message]
2026-11-29 0:25 ` [PATCH 3/3] drm/panel: s6e88a0-ams452ef01: add backlight support Vladimir Bely
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261129002512.993570-3-vlwwwwww@gmail.com \
--to=vlwwwwww@gmail.com \
--cc=Michael.Srba@seznam.cz \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jesszhan0024@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®