Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Low] drm/panel: novatek_enable() reaches into drm_panel core panel->prepared state - [Low] drm/panel: missing Fixes trailer in commit message --
commit bda58794a2620a7efd289beb14b6a30327dba914 Author: Qianhui Xu <[email protected]> > drm/panel: novatek-nt36536: reject enable when prepare failed > > drm_panel_prepare() cannot report a failure to its caller, so the enable > part of the bridge chain still runs with panel->prepared unset. Provide an > enable() callback that returns -EIO in that case, so the panel is not > marked as enabled and the backlight stays off. > > Signed-off-by: Qianhui Xu <[email protected]> [Severity: Low] Should this include a Fixes tag for the commit that introduced the driver? Fixes: 75a5dbd1f4f7 ("drm/panel: Add Novatek NT36536 panel driver") > diff --git a/drivers/gpu/drm/panel/panel-novatek-nt36536.c > b/drivers/gpu/drm/panel/panel-novatek-nt36536.c > index 88a003f5a9441..698e7b85a8a76 100644 > --- a/drivers/gpu/drm/panel/panel-novatek-nt36536.c > +++ b/drivers/gpu/drm/panel/panel-novatek-nt36536.c > @@ -123,6 +123,12 @@ static int novatek_prepare(struct drm_panel *panel) > return ret; > } > > +static int novatek_enable(struct drm_panel *panel) > +{ > + /* The bridge enable chain can continue after a failed prepare > callback. */ > + return panel->prepared ? 0 : -EIO; > +} [Severity: Low] Should panel->prepared be checked in drm_panel_enable() instead of in a driver-specific enable() callback? Commit d2aacaf07395 ("drm/panel: Check for already prepared/enabled in drm_panel") centralized panel->prepared and panel->enabled tracking in drivers/gpu/drm/drm_panel.c so individual panel drivers do not inspect it, and drm_panel_funcs.enable is otherwise optional for drivers whose power-on sequence runs in prepare(). Checking panel->prepared in drm_panel_enable() before setting panel->enabled and enabling panel->backlight would avoid reaching into drm_panel core state here and cover all panel drivers without their own enable step. -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=4
