Re: [PATCH v2] gpio: shared: fix a deadlock

From: Bartosz Golaszewski

Date: Fri Nov 28 2025 - 03:49:23 EST


From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>


On Fri, 28 Nov 2025 09:40:11 +0100, Bartosz Golaszewski wrote:
> It's possible that the auxiliary proxy device we add when setting up the
> GPIO controller exposing shared pins, will get matched and probed
> immediately. The gpio-proxy-driver will then retrieve the shared
> descriptor structure. That will cause a recursive mutex locking and
> a deadlock because we're already holding the gpio_shared_lock in
> gpio_device_setup_shared() and try to take it again in
> devm_gpiod_shared_get() like this:
>
> [...]

Applied, thanks!

[1/1] gpio: shared: fix a deadlock
https://git.kernel.org/brgl/linux/c/54a2df5afa2382d6fd1168a3caf151f50c68dfea

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>