On Wed, Nov 25, 2026 at 06:50:33PM +0100, Luca Ceresoli wrote:
> diff --git a/include/drm/drm_bridge.h b/include/drm/drm_bridge.h
> index d6ef020c4cc9..cfa0aff1de4f 100644
> --- a/include/drm/drm_bridge.h
> +++ b/include/drm/drm_bridge.h
> @@ -62,6 +62,25 @@ enum drm_bridge_attach_flags {
>   * struct drm_bridge_funcs - drm_bridge control functions
>   */
>  struct drm_bridge_funcs {
> +     /**
> +      * @get_next_bridge:
> +      *
> +      * Return a pointer to the bridge connected at the output port of
> +      * this bridge.
> +      *
> +      * Returns:
> +      * * Pointer to a bridge connected to the output port of this bridge,
> +      *   with refcount incremented; call drm_bridge_put() when done
> +      * * ERR_PTR(-ENODEV): this bridge has an output port where a next
> +      *                     bridge needs to be present for video output,
> +      *                     but the next bridge is not currently
> +      *                     available
> +      * * NULL: this bridge does not have an output port where a next
> +      *         bridge is expected (e.g. a panel)
> +      * * Another negative error returned by the bridge func
> +      */
> +     struct drm_bridge *(*get_next_bridge)(struct drm_bridge *bridge);
> +
>       /**
>        * @attach:
>        *
> @@ -1021,6 +1040,11 @@ enum drm_bridge_ops {
>        * &drm_bridge_funcs->hdmi_clear_spd_infoframe callbacks.
>        */
>       DRM_BRIDGE_OP_HDMI_SPD_INFOFRAME = BIT(10),
> +     /**
> +      * @DRM_BRIDGE_OP_GET_NEXT_BRIDGE: The bridge implements the
> +      * &drm_bridge_funcs->get_next_bridge callback.
> +      */
> +     DRM_BRIDGE_OP_GET_NEXT_BRIDGE = BIT(11),

Acked-by: Maxime Ripard <[email protected]>

Note that it's going to conflict with 
https://lore.kernel.org/all/[email protected]/

Maxime

Attachment: signature.asc
Description: PGP signature

Reply via email to