Re: [PATCH v2] drm/bridge: samsung-dsim: fix TE GPIO lifetime for host attach

From: Luca Ceresoli

Date: Mon Sep 21 2026 - 05:11:54 EST



On Fri, 04 Sep 2026 09:49:58 +0800, Li Youhong wrote:
> When the Exynos DSI driver was generalized into samsung-dsim, the TE
> GPIO acquisition was switched from gpiod_get_optional() to
> devm_gpiod_get_optional() while keeping the matching gpiod_put() calls.
> That combination is wrong for a managed descriptor.
>
> However, dropping the puts and keeping the managed get is also wrong:
> samsung_dsim_register_te_irq() runs from the DSI host attach callback,
> and host detach/reattach can happen without destroying the device that
> owns the managed action. A second attach would then request the GPIO
> again without having released it.
>
> [...]

Applied, thanks!

[1/1] drm/bridge: samsung-dsim: fix TE GPIO lifetime for host attach
commit: ada667890773e033d2f40dc94176e3beb930b516

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