dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] drm/panel: novatek-nt36536: mode additions and lifecycle fixes for CSOT PP8807HB1-1
@ 2026-12-01 10:39 Qianhui Xu
  2026-12-01 10:39 ` [PATCH v2 1/4] drm/panel: novatek-nt36536: add 40Hz and 24Hz modes " Qianhui Xu
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Qianhui Xu @ 2026-12-01 10:39 UTC (permalink / raw)
  To: Neil Armstrong, Jessica Zhang, dri-devel
  Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, linux-kernel

The CSOT PP8807HB1-1 panel on the Lenovo Legion Y700 Gen4 (SM8750P) is
already supported upstream, but the driver only exposes the 120/60/30Hz
modes and its prepare/enable lifecycle loses state on failure. This
series adds the 40Hz and 24Hz modes and fixes three lifecycle bugs.

Patch 1 adds the two refresh rates. Patch 2 resolves the backlight and
configures every DSI device before the bridges are attached, because
attach can prepare the panel immediately. Patch 3 undoes the power-up on
every prepare() failure path instead of only the initialisation-sequence
one. Patch 4 stops the enable chain from marking a panel enabled after a
failed prepare.

Changes in v2:
 - patches 2-4: add Fixes: and Cc: stable, the ordering and error
   handling bugs are in the driver since it was merged in v7.3
 - patch 4: explain in the commit message why the guard is not moved
   into drm_panel_enable(); that function is void, and "prepare never
   called" is indistinguishable from "prepare failed" there, so
   panels whose bridge ops do not call drm_panel_prepare() would be
   skipped as well
 - no code changes since v1; the patches are identical apart from the
   commit messages

The 40Hz and 24Hz modes were measured on the panel. The lifecycle fixes
are build-tested and boot-tested on the Lenovo Y700 Gen4 only, not on
other boards using this panel.

*** AI-assistance disclosure ***
This series was prepared with the help of an LLM coding assistant. The
author reviewed every line, checked each claim against the source tree,
and ran the gates quoted above; the design decisions and any errors are
the author's.



Qianhui Xu (4):
  drm/panel: novatek-nt36536: add 40Hz and 24Hz modes for CSOT
    PP8807HB1-1
  drm/panel: novatek-nt36536: finish setup before attaching DSI devices
  drm/panel: novatek-nt36536: power off on any prepare failure
  drm/panel: novatek-nt36536: reject enable when prepare failed

 drivers/gpu/drm/panel/panel-novatek-nt36536.c | 74 +++++++++++++++----
 1 file changed, 58 insertions(+), 16 deletions(-)

-- 
2.53.0


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

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

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 10:39 [PATCH v2 0/4] drm/panel: novatek-nt36536: mode additions and lifecycle fixes for CSOT PP8807HB1-1 Qianhui Xu
2026-12-01 10:39 ` [PATCH v2 1/4] drm/panel: novatek-nt36536: add 40Hz and 24Hz modes " Qianhui Xu
2026-12-01 10:46   ` sashiko-bot
2026-12-01 10:39 ` [PATCH v2 2/4] drm/panel: novatek-nt36536: finish setup before attaching DSI devices Qianhui Xu
2026-12-01 10:39 ` [PATCH v2 3/4] drm/panel: novatek-nt36536: power off on any prepare failure Qianhui Xu
2026-12-01 10:39 ` [PATCH v2 4/4] drm/panel: novatek-nt36536: reject enable when prepare failed Qianhui Xu
2026-12-01 10:47   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox