Re: [PATCH] gpio: shared: shorten the critical section in gpiochip_setup_shared()

From: Bartosz Golaszewski

Date: Mon Mar 30 2026 - 03:51:43 EST



On Wed, 25 Mar 2026 12:06:38 +0100, Bartosz Golaszewski wrote:
> Commit 710abda58055 ("gpio: shared: call gpio_chip::of_xlate() if set")
> introduced a critical section around the adjustmenet of entry->offset.
> However this may cause a deadlock if we create the auxiliary shared
> proxy devices with this lock taken. We only need to protect
> entry->offset while it's read/written so shorten the critical section
> and release the lock before creating the proxy device as the field in
> question is no longer accessed at this point.
>
> [...]

Applied, thanks!

[1/1] gpio: shared: shorten the critical section in gpiochip_setup_shared()
https://git.kernel.org/brgl/c/310a4a9cbb17037668ea440f6a3964d00705b400

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