mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Joshua Peisach" <jpeisach@ubuntu.com>
To: "Luca Ceresoli" <luca.ceresoli@bootlin.com>,
	"Sasha Finkelstein" <k@chaosmail.tech>,
	"Janne Grunau" <j@jannau.net>,
	"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
	"Maxime Ripard" <mripard@kernel.org>,
	"Thomas Zimmermann" <tzimmermann@suse.de>,
	"David Airlie" <airlied@gmail.com>,
	"Simona Vetter" <simona@ffwll.ch>,
	"Neil Armstrong" <neil.armstrong@linaro.org>,
	"Jessica Zhang" <jesszhan0024@gmail.com>,
	"Jonathan Corbet" <corbet@lwn.net>,
	"Shuah Khan" <skhan@linuxfoundation.org>,
	"Randy Dunlap" <rdunlap@infradead.org>,
	"Dmitry Baryshkov" <lumag@kernel.org>
Cc: "Hui Pu" <Hui.Pu@gehealthcare.com>,
	"Ian Ray" <ian.ray@gehealthcare.com>,
	"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>,
	<dri-devel@lists.freedesktop.org>, <asahi@lists.linux.dev>,
	<linux-kernel@vger.kernel.org>, <linux-doc@vger.kernel.org>
Subject: Re: [PATCH 0/3] drm: remove drmm_of_get_bridge()
Date: Sun, 08 Nov 2026 12:26:10 -0500	[thread overview]
Message-ID: <DMQ07CEZJVG0.230CONY47IYFZ@ubuntu.com> (raw)
In-Reply-To: <20261106-drm-panel_bridge-remove-drmm_of_get_bridge-v1-0-c0ea3382b798@bootlin.com>

On Fri Nov 6, 2026 at 11:17 AM EST, Luca Ceresoli wrote:
> drmm_of_get_bridge() is deprecated. By now it is just a complicated wrapper
> to of_drm_get_bridge_by_endpoint(), and it does not implement bridge
> refcounting. Replace the only user and remove it.
>
> == Grand plan
>
> This is part of the work to support hotplug of DRM bridges.
>
> Here's the work breakdown (➜ marks the current series):
>
>  1. ➜ add refcounting to DRM bridges struct drm_bridge,
>       based on devm_drm_bridge_alloc()
>     A. ✔ add new alloc API and refcounting (v6.16)
>     B. ✔ convert all bridge drivers to new API (v6.17)
>     C. ✔ kunit tests (v6.17)
>     D. ✔ add get/put to drm_bridge_add/remove() + attach/detach()
>          and warn on old allocation pattern (v6.17)
>     E. ➜ add get/put on drm_bridge accessors
>        1. ✔ drm_bridge_chain_get_first_bridge(), add cleanup action (v6.18)
>        2. ✔ drm_bridge_get_prev_bridge() (v6.18)
>        3. ✔ drm_bridge_get_next_bridge() (v6.19)
>        4. ✔ drm_for_each_bridge_in_chain() (v6.19)
>        5. ✔ drm_bridge_connector_init (v6.19)
>        6. ✔ protect encoder bridge chain with a mutex (v7.2)
>        7. ✔ of_drm_find_bridge
>           a. ✔ add of_drm_get_bridge() (v7.0),
>                convert basic direct users (v7.0-v7.1)
>           b. ✔ convert direct of_drm_get_bridge() users, part 2 (v7.0)
>           c. ✔ convert direct of_drm_get_bridge() users, part 3 (v7.0)
>           d. ✔ convert direct of_drm_get_bridge() users, part 4 (v7.1-v7.2)
>           e. ✔ bridge-only drm_of_find_panel_or_bridge() users (v7.2)
>        8. ➜ panel_bridge lifetime
>           a. ✔ cleanup DRM_PANEL in bridge drivers (v7.4)
> 	  b. ✔ embed a drm_bridge in every drm_panel (v7.4)
> 	  c. ✔ remove *_of_get_bridge(): non-OF drivers (v7.5)
> 	  d. ➜ remove drmm_of_get_bridge()
> 	  e.   remove devm_drm_of_get_bridge()
>        9. ✔ enforce drm_bridge_add before drm_bridge_attach (v6.19)
>     F. ✔ debugfs improvements
>        1. ✔ add top-level 'bridges' file (v6.16)
>        2. ✔ show refcount and list lingering bridges (v6.19)
>  2. ✔ handle gracefully atomic updates during bridge removal
>     A. ✔ Add drm_bridge_enter/exit() to protect device resources (v7.0)
>     B. ✔ Add drm_bridge_clear_and_put() (v7.1)
>  3. ✕ DSI host-device driver interaction
>  4. ✔ removing the need for the "always-disconnected" connector
>  5. ✔ Migrate i.MX LCDIF driver to bridge-connector (v7.2)
>  6. … DRM bridge hotplug
>     A. … Bridge hotplug management in the DRM core
>        1. ✔ bridge-connector: attach encoder to the connector (v7.2)
>        2. … drm bridge hotplug
>     B.   Device tree description
>
> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
> ---
> Luca Ceresoli (3):
>       drm: adp: stop using deprecated drmm_of_get_bridge()
>       drm/panel: remove drmm_of_get_bridge()
>       drm/todo: remove drmm_of_get_bridge()
>
>  Documentation/gpu/todo.rst    |  1 -
>  drivers/gpu/drm/adp/adp_drv.c | 13 +++++++++----
>  drivers/gpu/drm/drm_panel.c   | 40 ----------------------------------------
>  include/drm/drm_panel.h       | 10 ----------
>  4 files changed, 9 insertions(+), 55 deletions(-)
> ---
> base-commit: 4524052b65a75166c1c557921c786bd82302de13
> change-id: 20261106-drm-panel_bridge-remove-drmm_of_get_bridge-791bd0f0ad97
>
> Best regards,
> --  
> Luca Ceresoli, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com

Looks good

Reviewed-by: Joshua Peisach <jpeisach@ubuntu.com>

      parent reply	other threads:[~2026-11-08 17:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-06 16:17 Luca Ceresoli
2026-11-06 16:17 ` [PATCH 1/3] drm: adp: stop using deprecated drmm_of_get_bridge() Luca Ceresoli
2026-11-06 16:17 ` [PATCH 2/3] drm/panel: remove drmm_of_get_bridge() Luca Ceresoli
2026-11-06 16:17 ` [PATCH 3/3] drm/todo: " Luca Ceresoli
2026-11-08 17:26 ` Joshua Peisach [this message]

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=DMQ07CEZJVG0.230CONY47IYFZ@ubuntu.com \
    --to=jpeisach@ubuntu.com \
    --cc=Hui.Pu@gehealthcare.com \
    --cc=airlied@gmail.com \
    --cc=asahi@lists.linux.dev \
    --cc=corbet@lwn.net \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=ian.ray@gehealthcare.com \
    --cc=j@jannau.net \
    --cc=jesszhan0024@gmail.com \
    --cc=k@chaosmail.tech \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luca.ceresoli@bootlin.com \
    --cc=lumag@kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=rdunlap@infradead.org \
    --cc=simona@ffwll.ch \
    --cc=skhan@linuxfoundation.org \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=tzimmermann@suse.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®