All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Luca Ceresoli" <luca.ceresoli@bootlin.com>
To: "Maíra Canal" <mcanal@igalia.com>,
	"Luca Ceresoli" <luca.ceresoli@bootlin.com>,
	"Maxime Ripard" <mripard@kernel.org>,
	"Dave Stevenson" <dave.stevenson@raspberrypi.com>,
	"Raspberry Pi Kernel Maintenance" <kernel-list@raspberrypi.com>,
	"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
	"Thomas Zimmermann" <tzimmermann@suse.de>,
	"David Airlie" <airlied@gmail.com>,
	"Simona Vetter" <simona@ffwll.ch>
Cc: "Paul Cercueil" <paul.cercueil@bootlin.com>,
	"Hui Pu" <Hui.Pu@gehealthcare.com>,
	"Ian Ray" <ian.ray@gehealthcare.com>,
	"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>,
	<dri-devel@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v3 2/3] drm/vc4: dsi: stop using deprecated drmm_of_get_bridge()
Date: Thu, 05 Nov 2026 11:28:16 +0100	[thread overview]
Message-ID: <DMN7FQV2OH2W.1363T5O792FIR@bootlin.com> (raw)
In-Reply-To: <e8321403-43dd-4ca2-8b20-117b9c18dcc6@igalia.com>

On Sat Oct 24, 2026 at 2:56 PM CEST, Maíra Canal wrote:
> Hi Luca,
>
> On 13/10/26 12:23, Luca Ceresoli wrote:
>> drmm_of_get_bridge() is deprecated, switch to
>> of_drm_get_bridge_by_endpoint(). As of_drm_get_bridge_by_endpoint() returns
>> a refcounted bridge, ensure it is put by using bridge.next_bridge.
>>
>> drm_panel.h becomes unused, drop the include.
>>
>> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>

...

>> @@ -1165,7 +1163,7 @@ static int vc4_dsi_bridge_attach(struct drm_bridge *bridge,
>>   	struct vc4_dsi *dsi = bridge_to_vc4_dsi(bridge);
>
> I believe you can delete *dsi
>
>>
>>   	/* Attach the panel or bridge to the dsi bridge */
>> -	return drm_bridge_attach(encoder, dsi->out_bridge,
>> +	return drm_bridge_attach(encoder, dsi->bridge.next_bridge,
>
> and use drm_bridge_attach(encoder, bridge->next_bridge, bridge, flags).

Good point. I did this in v4 as a new patch, to keep this one patch
readable.

> Also, I believe the comment is now redundant as panels are just bridges.

Indeed, done.

> Apart from these nits, could you also address Sashiko's feedback?

Sure, fixed in v4.

Thanks for reviewing!

Luca

--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2026-11-05 10:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-13 15:23 [PATCH v3 0/3] drm: remove deprecated *_of_get_bridge() from non-OF drivers Luca Ceresoli
2026-10-13 15:23 ` [PATCH v3 1/3] drm/vc4: dpi: stop using deprecated drmm_of_get_bridge() Luca Ceresoli
2026-10-24 12:57   ` Maíra Canal
2026-10-13 15:23 ` [PATCH v3 2/3] drm/vc4: dsi: " Luca Ceresoli
2026-10-13 15:35   ` sashiko-bot
2026-10-13 15:56     ` Luca Ceresoli
2026-10-24 12:56   ` Maíra Canal
2026-11-05 10:28     ` Luca Ceresoli [this message]
2026-10-13 15:23 ` [PATCH v3 3/3] drm/vc4: dpi: inline vc4_dpi_init_bridge() into vc4_dpi_bind() Luca Ceresoli
2026-10-24 13:03   ` Maíra Canal
2026-11-05  9:57     ` Luca Ceresoli

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=DMN7FQV2OH2W.1363T5O792FIR@bootlin.com \
    --to=luca.ceresoli@bootlin.com \
    --cc=Hui.Pu@gehealthcare.com \
    --cc=airlied@gmail.com \
    --cc=dave.stevenson@raspberrypi.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=ian.ray@gehealthcare.com \
    --cc=kernel-list@raspberrypi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mcanal@igalia.com \
    --cc=mripard@kernel.org \
    --cc=paul.cercueil@bootlin.com \
    --cc=simona@ffwll.ch \
    --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 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.