From: sashiko-bot@kernel.org
To: "Nikita Zhandarovich" <n.zhandarovich@fintech.ru>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 3/3] drm/bridge: analogix_dp: Propagate errors from runtime resume
Date: Wed, 25 Nov 2026 12:02:55 +0000 [thread overview]
Message-ID: <sashiko-outbox-233327@kernel.org> (raw)
In-Reply-To: <20261125114319.1089186-4-n.zhandarovich@fintech.ru>
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 <n.zhandarovich@fintech.ru>
> 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 <n.zhandarovich@fintech.ru>
[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-n.zhandarovich@fintech.ru?part=3
next prev parent reply other threads:[~2026-11-25 12:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 11:43 [PATCH 0/3] drm: analogix_dp: Handle runtime resume failures Nikita Zhandarovich
2026-11-25 11:43 ` Nikita Zhandarovich
2026-11-25 11:43 ` [PATCH 1/3] drm/bridge: analogix_dp: Check runtime resume before accessing hardware Nikita Zhandarovich
2026-11-25 11:43 ` Nikita Zhandarovich
2026-11-25 11:43 ` [PATCH 2/3] drm/rockchip: analogix_dp: Disable pclk if setting eDP mode fails Nikita Zhandarovich
2026-11-25 11:43 ` Nikita Zhandarovich
2026-11-25 13:33 ` Damon Ding
2026-11-25 13:33 ` Damon Ding
2026-11-25 13:35 ` Жандарович Никита Игоревич
2026-11-25 13:35 ` Жандарович Никита Игоревич
2026-11-25 11:43 ` [PATCH 3/3] drm/bridge: analogix_dp: Propagate errors from runtime resume Nikita Zhandarovich
2026-11-25 11:43 ` Nikita Zhandarovich
2026-11-25 12:02 ` sashiko-bot [this message]
2026-11-25 13:34 ` Жандарович Никита Игоревич
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-233327@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=n.zhandarovich@fintech.ru \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.