> -----Original Message-----
> From: [email protected] <[email protected]>
> Sent: Wednesday, November 25, 2026 7:03 PM
> To: Жандарович Никита Игоревич <[email protected]>
> Cc: [email protected]
> Subject: Re: [PATCH v2 3/3] drm/bridge: analogix_dp: Propagate errors from
> runtime resume
> 
> Thank you for your contribution! Sashiko AI review found 1 potential
> issue to consider:
> - [High] drm/bridge: analogix_dp: power_on() error check breaks Exynos
>   DP AUX
> --
> 
> commit b5122fa2090e46cf82c87fc8f96ad53a322e3824
> Author: Nikita Zhandarovich <[email protected]>
> 
> drm/bridge: analogix_dp: Propagate errors from runtime resume
> 
> This commit checks return values from plat_data->power_on(),
> phy_set_mode(),
> and phy_power_on() in analogix_dp_resume(), unwinding platform power
> and
> disabling dp->clock on error.
> 
> > diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> > index 4d3d72476dd95..9228655893a0b 100644
> > --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> > +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> > @@ -1539,15 +1539,30 @@ int analogix_dp_resume(struct
> analogix_dp_device *dp)
> >             return ret;
> >     }
> >
> > -   if (dp->plat_data->power_on)
> > -           dp->plat_data->power_on(dp->plat_data);
> > +   if (dp->plat_data->power_on) {
> > +           ret = dp->plat_data->power_on(dp->plat_data);
> > +           if (ret)
> > +                   goto err_disable_clk;
> > +   }
> 
> [Severity: High]
> Does aborting analogix_dp_resume() on a non-zero return from
> dp->plat_data->power_on() break DP AUX access on Exynos DP before a
> CRTC is
> attached?
> 
> On Exynos DP, dp->plat_data.power_on is exynos_dp_poweron(), which
> calls
> exynos_dp_crtc_clock_enable():
> 
> drivers/gpu/drm/exynos/exynos_dp.c:exynos_dp_crtc_clock_enable() {
>       ...
>       if (!encoder->crtc)
>               return -EPERM;
>       ...
> }
> 
> Because encoder->crtc is NULL until an atomic modeset binds a CRTC to the
> encoder (and becomes NULL again when the display is disabled), runtime
> resume triggered by analogix_dpaux_transfer() now fails with -EPERM,
> skipping phy_power_on() and analogix_dp_init_dp() and breaking AUX bus
> panel population at probe time as well as pre-modeset EDID reads.
> 
> --
> Sashiko AI review ·
> https://sashiko.dev/#/patchset/20261125153958.1349811-1-
> [email protected]?part=3

Thank you for the review. To reiterate, this is the same prerequisite issue
reported for v1.

Patch 3 requires either Alexandre Marquet's Exynos pipe-clock
conversion or Marek Szyprowski's alternative, as documented in the
cover letter and patch notes. Both remove the platform power
callbacks responsible for the -EPERM return described here.

The prerequisite remains external to this series and must be
applied before patch 3. I've tried to make it as clear as possible
both in cover letter and in the comment to the patch 3.

Reply via email to