Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/panel: stale follower_lock doc and overly broad commit
  locking claim
--

commit 176ae2399799a2aa4414b9123430d1e072bb7acb
Author: Qianhui Xu <[email protected]>

drm/panel: skip enable after a failed prepare

This commit tracks a failed drm_panel_prepare() in a new prepare_failed
flag so drm_panel_enable() skips enabling the panel, and takes
follower_lock before reading or updating the panel state flags in the
four drm_panel helpers.

> All reads and writes of prepared, enabled and the flag happen with
> follower_lock held, which all four helpers now take before looking at
> the panel state.

[Severity: Low]
Should this claim be scoped to the drm_panel core helpers?  Drivers
outside drm_panel.c (e.g. s6e8aa5x01_ams561ra01_update_status() in
panel-samsung-s6e8aa5x01-ams561ra01.c) still read panel.prepared or
panel.enabled without follower_lock.

Also, the kernel-doc for follower_lock in include/drm/drm_panel.h still
says only "Lock for followers list.", and prepared, enabled, and
prepare_failed do not mention it.  Updating those comments avoids future
changes bypassing follower_lock when no followers are registered.

-- 
Sashiko AI review ยท 
https://sashiko.dev/#/patchset/[email protected]?part=1

Reply via email to