* Re: [PATCH v4 3/3] drm/bridge: megachips: remove bridge when irq request fails
[not found] <20260430195700.80317-1-osama.abdelkader@gmail.com>
@ 2026-05-05 15:37 ` Luca Ceresoli
2026-05-13 5:04 ` Ian Ray
0 siblings, 1 reply; 2+ messages in thread
From: Luca Ceresoli @ 2026-05-05 15:37 UTC (permalink / raw)
To: Osama Abdelkader, Peter Senna Tschudin, Ian Ray, Martyn Welch,
Andrzej Hajda, Neil Armstrong, Robert Foss, Laurent Pinchart,
Jonas Karlman, Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, Archit Taneja,
dri-devel, linux-kernel
Cc: stable
On Thu Apr 30, 2026 at 9:56 PM CEST, Osama Abdelkader wrote:
> If devm_request_threaded_irq() fails after drm_bridge_add(), remove the
> bridge before returning.
>
> Keep drm_bridge_add() rather than devm_drm_bridge_add(): registration is
> tied to the STDP4028 device while ge_b850v3_register() may complete from
> either I2C probe; devm would not unwind the bridge if the other client's
> probe fails.
I had a hard time in getting what you mean, until I noticed the global
(ugh) ge_b850v3_lvds_ptr and the two "Only register after both bridges are
probed" checks. Pretty hacky, but definitely for the sake of the fix you're
introducing your patch will be OK.
> Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
> Fixes: fcfa0ddc18ed ("drm/bridge: Drivers for megachips-stdpxxxx-ge-b850v3-fw (LVDS-DP++)")
> Cc: stable@vger.kernel.org
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v4 3/3] drm/bridge: megachips: remove bridge when irq request fails
2026-05-05 15:37 ` [PATCH v4 3/3] drm/bridge: megachips: remove bridge when irq request fails Luca Ceresoli
@ 2026-05-13 5:04 ` Ian Ray
0 siblings, 0 replies; 2+ messages in thread
From: Ian Ray @ 2026-05-13 5:04 UTC (permalink / raw)
To: Luca Ceresoli
Cc: Osama Abdelkader, Peter Senna Tschudin, Ian Ray, Martyn Welch,
Andrzej Hajda, Neil Armstrong, Robert Foss, Laurent Pinchart,
Jonas Karlman, Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, Archit Taneja,
dri-devel, linux-kernel, stable
On Tue, May 05, 2026 at 05:37:42PM +0200, Luca Ceresoli wrote:
> On Thu Apr 30, 2026 at 9:56 PM CEST, Osama Abdelkader wrote:
> > If devm_request_threaded_irq() fails after drm_bridge_add(), remove the
> > bridge before returning.
> >
> > Keep drm_bridge_add() rather than devm_drm_bridge_add(): registration is
> > tied to the STDP4028 device while ge_b850v3_register() may complete from
> > either I2C probe; devm would not unwind the bridge if the other client's
> > probe fails.
>
> I had a hard time in getting what you mean, until I noticed the global
> (ugh) ge_b850v3_lvds_ptr and the two "Only register after both bridges are
> probed" checks. Pretty hacky, but definitely for the sake of the fix you're
> introducing your patch will be OK.
>
> > Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
> > Fixes: fcfa0ddc18ed ("drm/bridge: Drivers for megachips-stdpxxxx-ge-b850v3-fw (LVDS-DP++)")
> > Cc: stable@vger.kernel.org
>
> Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Tested boot and hot-plug, no regressions found. Side-note: an update to
MAINTAINERS has also been accepted [1].
[1] https://lore.kernel.org/all/20260508234835.38732C2BCB0@smtp.kernel.org/
Tested-by: Ian Ray <ian.ray@gehealthcare.com>
>
> --
> Luca Ceresoli, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-05-13 5:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260430195700.80317-1-osama.abdelkader@gmail.com>
2026-05-05 15:37 ` [PATCH v4 3/3] drm/bridge: megachips: remove bridge when irq request fails Luca Ceresoli
2026-05-13 5:04 ` Ian Ray
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox