[PATCH v2 0/4] drm/panel: novatek-nt36536: mode additions and lifecycle fixes for CSOT PP8807HB1-1
From: Qianhui Xu
Date: Tue Dec 01 2026 - 05:39:46 EST
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