Re: [PATCH 1/3] drm/bridge: stop mentioning deprecated devm_drm_of_get_bridge() in docs

From: Laurent Pinchart

Date: Tue Oct 13 2026 - 09:37:28 EST


On Mon, Oct 12, 2026 at 04:29:51PM +0200, Luca Ceresoli wrote:
> devm_drm_of_get_bridge() is deprecated. Update the "display driver
> integration" docs by mentioning the currently recommended API.
>
> Link: https://lore.kernel.org/all/c1b065c8bd926708500b7c42864279e055ed95d0.camel@xxxxxxxxxxx/
> Suggested-by: Icenowy Zheng <zhengxingda@xxxxxxxxxxx>
> Signed-off-by: Luca Ceresoli <luca.ceresoli@xxxxxxxxxxx>

Reviewed-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>

> ---
> drivers/gpu/drm/drm_bridge.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c
> index e7f9e6d58927..e259d078f7de 100644
> --- a/drivers/gpu/drm/drm_bridge.c
> +++ b/drivers/gpu/drm/drm_bridge.c
> @@ -68,8 +68,9 @@
> *
> * Display drivers are responsible for linking encoders with the first bridge
> * in the chains. This is done by acquiring the appropriate bridge with
> - * devm_drm_of_get_bridge(). Once acquired, the bridge shall be attached to the
> - * encoder with a call to drm_bridge_attach().
> + * of_drm_get_bridge_by_endpoint() or of_drm_find_and_get_bridge(). Once
> + * acquired, the bridge shall be attached to the encoder with a call to
> + * drm_bridge_attach().
> *
> * Bridges are responsible for linking themselves with the next bridge in the
> * chain, if any. This is done the same way as for encoders, with the call to

--
Regards,

Laurent Pinchart