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 0/2] drm/panel: samsung-s6e3ha2: Convert to mipi_dsi_*_multi()
Date: Tue, 1 Dec 2026 12:33:55 +0800 [thread overview]
Message-ID: <20261201043357.2064027-1-hungen3108@gmail.com> (raw)
This series converts the Samsung S6E3HA2 MIPI-DSI panel driver to the
mipi_dsi_*_multi() helpers and fixes an error-handling bug in
s6e3ha2_disable() beforehand:
- Patch 1 fixes s6e3ha2_disable() so that DCS command failures are logged
and ignored rather than returning early and leaving panel->enabled set.
- Patch 2 converts the driver to mipi_dsi_*_multi(), removing the custom
hidden-return macros and deprecated MIPI DSI helpers. Patch 2 is
intended to be a functional no-op apart from error logging; see the
patch notes for how the command sequences were verified.
Note: While converting s6e3ha2_enable(), I noticed that it calls
s6e3ha2_test_key_on_f0(), then calls the brightness update sequence
which ends with s6e3ha2_test_key_off_f0(). As a result, the subsequent
commands (s6e3ha2_aor_control() through s6e3ha2_test()) are sent after
the F0 test key has been locked, followed by a second
s6e3ha2_test_key_off_f0() call. I intentionally left this command
sequence unchanged to avoid altering existing hardware behavior without
access to the panel. Please let me know if this should be handled
differently.
Compile-tested on arm64 with W=1, building each patch individually; not
tested on hardware.
Hsieh Hung-En (2):
drm/panel: samsung-s6e3ha2: Ignore DCS errors in disable()
drm/panel: samsung-s6e3ha2: Use mipi_dsi_*_multi() functions
drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c | 286 ++++++++----------
1 file changed, 124 insertions(+), 162 deletions(-)
base-commit: 5de4885dae61a0e1708402e1fbf8f9d600ef1f4f
--
2.43.0
next reply other threads:[~2026-12-01 4:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 4:33 Hsieh Hung-En [this message]
2026-12-01 4:33 ` [PATCH 1/2] drm/panel: samsung-s6e3ha2: Ignore DCS errors in disable() Hsieh Hung-En
2026-12-01 4:33 ` [PATCH 2/2] drm/panel: samsung-s6e3ha2: Use mipi_dsi_*_multi() functions Hsieh Hung-En
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-1-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 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®