Re: [PATCH v5 02/10] drm/bridge: Add detect_ctx hook and drm_bridge_detect_ctx() helper

From: Heiko Stuebner

Date: Mon Apr 27 2026 - 07:01:42 EST


Am Sonntag, 26. April 2026, 02:20:14 Mitteleuropäische Sommerzeit schrieb Cristian Ciocaltea:
> Add an atomic-aware .detect_ctx() callback to drm_bridge_funcs and a
> drm_bridge_detect_ctx() helper that accepts an optional
> drm_modeset_acquire_ctx.
>
> This enables bridge drivers to perform operations requiring modeset
> locking during connector detection, such as SCDC management for HDMI
> 2.0. When both ->detect_ctx and ->detect are defined, the former takes
> precedence. When ctx is NULL, locking is managed internally with EDEADLK
> retry.
>
> Tested-by: Diederik de Haas <diederik@xxxxxxxxxxxxxx>
> Tested-by: Maud Spierings <maud_spierings@xxxxxxxxxxx>
> Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@xxxxxxxxxxxxx>

while this looks sane to me, my drm insights are spotty, so I can
only provide the lighter

Acked-by: Heiko Stuebner <heiko@xxxxxxxxx>