mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] drm/panel: samsung-s6e3ha2: Convert to mipi_dsi_*_multi()
@ 2026-12-01  4:33 Hsieh Hung-En
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Hsieh Hung-En @ 2026-12-01  4:33 UTC (permalink / raw)
  To: neil.armstrong, jesszhan0024, dianders
  Cc: maarten.lankhorst, mripard, tzimmermann, airlied, simona,
	hoegeun.kwon, human.hwang, dh09.lee, treding, andrzej.hajda,
	dri-devel, linux-samsung-soc, linux-kernel, Hsieh Hung-En

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-01  4:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [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

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®