Thank you for the review. Agreed on the Fixes trailer. I will replace 3424e3a4f844 with 73f613908eb1, which moved the unchecked platform and PHY power-on calls into analogix_dp_resume(). I'll start preparing v2 series.
The Exynos issue is the reason this patch depends on the pipe-clock conversion mentioned in the cover letter and below the --- separator. Either Alexandre Marquet's conversion [1] or Marek Szyprowski's alternative [2] must be applied first. This patch must not be applied without that prerequisite. The series was developed and build-tested with Marquet's conversion applied. [1] https://lore.kernel.org/all/20261027-drm-misc-next-manta-auxbus-v1-2-3a45c3cf5...@a-marquet.fr/ [2] https://lore.kernel.org/all/[email protected]/ > -----Original Message----- > From: [email protected] <[email protected]> > Sent: Wednesday, November 25, 2026 3:03 PM > To: Жандарович Никита Игоревич <[email protected]> > Cc: [email protected] > Subject: Re: [PATCH 3/3] drm/bridge: analogix_dp: Propagate errors from > runtime resume > > Thank you for your contribution! Sashiko AI review found 2 potential > issues to consider: > - [High] drm/bridge: analogix_dp: power_on() error check breaks Exynos > DP AUX > - [Low] drm/bridge: analogix_dp: wrong Fixes trailer for > analogix_dp_resume() > -- > > commit 0706ac6bd7c68642ccd0c9e6f4e7ccc36e6bc48b > Author: Nikita Zhandarovich <[email protected]> > > > drm/bridge: analogix_dp: Propagate errors from runtime resume > > > > Stop controller initialization when platform or PHY power-on fails and > > return the original error to the resume caller. Unwind the platform > > power callback only after it has completed successfully, then release > > the controller clock. Do not call phy_power_off() after a failed > > phy_power_on(), since no successful PHY power reference was acquired. > > > > Also stop and unwind platform power if setting the PHY mode fails. > > > > Fixes: 3424e3a4f844 ("drm: bridge: analogix/dp: split exynos dp driver to > bridge directory") > > Fixes: 2c0883459ed6 ("drm/bridge: analogix_dp: Add support for phy > configuration.") > > Signed-off-by: Nikita Zhandarovich <[email protected]> > > [Severity: Low] > In 3424e3a4f844 ("drm: bridge: analogix/dp: split exynos dp driver to > bridge directory"), analogix_dp_resume() only called clk_prepare_enable() > and already checked and propagated its error. The unchecked > dp->plat_data->power_on() and phy_power_on() calls in > analogix_dp_resume() > were added later by 73f613908eb1 ("drm/bridge: analogix_dp: move > platform > and PHY power handling into runtime PM"). Should the first Fixes tag > reference 73f613908eb1 ("drm/bridge: analogix_dp: move platform and PHY > power handling into runtime PM") instead? > > > 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 dp->plat_data->power_on() > failure > break DP AUX transfers on Exynos when no CRTC is bound to the encoder? > > In this tree, the prerequisite Exynos pipe-clock conversion noted below the > --- separator is not present, so exynos_dp_poweron() still fails whenever > encoder->crtc is NULL: > > drivers/gpu/drm/exynos/exynos_dp.c:exynos_dp_crtc_clock_enable() { > struct exynos_dp_device *dp = to_dp(plat_data); > struct drm_encoder *encoder = &dp->encoder; > > if (!encoder->crtc) > return -EPERM; > > When analogix_dpaux_transfer() calls pm_runtime_resume_and_get() > before a > modeset attaches a CRTC (for example during > devm_of_dp_aux_populate_bus() > at probe time or pre-modeset EDID reads in > analogix_dp_bridge_edid_read()), > analogix_dp_resume() now aborts with -EPERM before powering on the > PHY or > initializing the DP controller. > > -- > Sashiko AI review · > https://sashiko.dev/#/patchset/20261125114319.1089186-1- > [email protected]?part=3
