From: Hsieh Hung-En <hungen3108@gmail.com>
To: neil.armstrong@linaro.org, jesszhan0024@gmail.com, dianders@chromium.org
Cc: maarten.lankhorst@linux.intel.com, mripard@kernel.org,
tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch,
hoegeun.kwon@samsung.com, human.hwang@samsung.com,
dh09.lee@samsung.com, treding@nvidia.com,
andrzej.hajda@intel.com, dri-devel@lists.freedesktop.org,
linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org,
Hsieh Hung-En <hungen3108@gmail.com>
Subject: [PATCH 1/2] drm/panel: samsung-s6e3ha2: Ignore DCS errors in disable()
Date: Tue, 1 Dec 2026 12:33:56 +0800 [thread overview]
Message-ID: <20261201043357.2064027-2-hungen3108@gmail.com> (raw)
In-Reply-To: <20261201043357.2064027-1-hungen3108@gmail.com>
If s6e3ha2_disable() returns an error from mipi_dsi_dcs_enter_sleep_mode()
or mipi_dsi_dcs_set_display_off(), drm_panel_disable() skips clearing
panel->enabled and s6e3ha2_disable() also skips updating
bl_dev->props.power. unprepare() still powers the panel off, but the next
drm_panel_enable() sees the panel as already enabled and does nothing,
leaving the panel dark.
Log any DCS command failure, continue with the remaining disable sequence,
and always return 0 from s6e3ha2_disable().
Fixes: ed29f9426d9b ("drm/panel: Add support for S6E3HA2 panel driver on TM2 board")
Signed-off-by: Hsieh Hung-En <hungen3108@gmail.com>
---
drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c b/drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c
index cede897ff69d..3a90b83002e5 100644
--- a/drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c
+++ b/drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c
@@ -504,8 +504,13 @@ static int s6e3ha2_disable(struct drm_panel *panel)
struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev);
int ret;
- s6e3ha2_call_write_func(ret, mipi_dsi_dcs_enter_sleep_mode(dsi));
- s6e3ha2_call_write_func(ret, mipi_dsi_dcs_set_display_off(dsi));
+ ret = mipi_dsi_dcs_enter_sleep_mode(dsi);
+ if (ret < 0)
+ dev_err(ctx->dev, "failed to enter sleep mode: %d\n", ret);
+
+ ret = mipi_dsi_dcs_set_display_off(dsi);
+ if (ret < 0)
+ dev_err(ctx->dev, "failed to set display off: %d\n", ret);
msleep(40);
ctx->bl_dev->props.power = BACKLIGHT_POWER_REDUCED;
--
2.43.0
next prev parent reply other threads:[~2026-12-01 4:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 4:33 [PATCH 0/2] drm/panel: samsung-s6e3ha2: Convert to mipi_dsi_*_multi() Hsieh Hung-En
2026-12-01 4:33 ` Hsieh Hung-En [this message]
2026-12-02 3:00 ` [PATCH 1/2] drm/panel: samsung-s6e3ha2: Ignore DCS errors in disable() Doug Anderson
2026-12-01 4:33 ` [PATCH 2/2] drm/panel: samsung-s6e3ha2: Use mipi_dsi_*_multi() functions Hsieh Hung-En
2026-12-02 3:00 ` Doug Anderson
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=20261201043357.2064027-2-hungen3108@gmail.com \
--to=hungen3108@gmail.com \
--cc=airlied@gmail.com \
--cc=andrzej.hajda@intel.com \
--cc=dh09.lee@samsung.com \
--cc=dianders@chromium.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=hoegeun.kwon@samsung.com \
--cc=human.hwang@samsung.com \
--cc=jesszhan0024@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=simona@ffwll.ch \
--cc=treding@nvidia.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.