Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] drm/tidss: unchecked tidss_runtime_get() in tidss_oldi_read_config() --
commit a65bf8e1088f5e847af4ee39d253fd55598fe32e Author: Maxime Ripard <[email protected]> drm/tidss: oldi: Implement hardware state readout This commit implements the atomic state readout and connector readout hooks for the tidss OLDI bridge. > diff --git a/drivers/gpu/drm/tidss/tidss_oldi.c > b/drivers/gpu/drm/tidss/tidss_oldi.c > index f767b0c115ac3..0ad4ef34ba640 100644 > --- a/drivers/gpu/drm/tidss/tidss_oldi.c > +++ b/drivers/gpu/drm/tidss/tidss_oldi.c [ ... ] > @@ -350,6 +355,154 @@ tidss_oldi_mode_valid(struct drm_bridge *bridge, > return MODE_OK; > } > > +static u32 tidss_oldi_read_config(struct tidss_oldi *oldi) > +{ > + u32 cfg; > + > + tidss_runtime_get(oldi->tidss); > + cfg = tidss_get_oldi_config(oldi->tidss, oldi->parent_vp); > + tidss_runtime_put(oldi->tidss); > + > + return cfg; > +} [Severity: Medium] Should tidss_oldi_read_config() check the return value of tidss_runtime_get()? tidss_runtime_get() wraps pm_runtime_resume_and_get(), which drops the runtime PM usage reference when resume fails. If it fails, tidss_get_oldi_config() reads DISPC_VP_DSS_OLDI_CFG while the DSS is still suspended, and tidss_runtime_put() decrements the usage count a second time. -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=41
