[PATCH 0/2] gpio: shared: fix locking issues in remove path

Bartosz Golaszewski posted 2 patches 2 days, 8 hours ago
drivers/gpio/gpiolib-shared.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
[PATCH 0/2] gpio: shared: fix locking issues in remove path
Posted by Bartosz Golaszewski 2 days, 8 hours ago
This fixes two issues observed with shared GPIO management enabled.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
Bartosz Golaszewski (2):
      gpio: shared: fix deadlock on shared proxy's parent removal
      gpio: shared: fix lockdep false positive by removing unneeded lock

 drivers/gpio/gpiolib-shared.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
---
base-commit: 5200f5f493f79f14bbdc349e402a40dfb32f23c8
change-id: 20260521-gpio-shared-deadlock-c9b7697c0030

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Re: [PATCH 0/2] gpio: shared: fix locking issues in remove path
Posted by Bartosz Golaszewski 2 days, 5 hours ago
On Fri, May 22, 2026 at 11:12 AM Bartosz Golaszewski
<bartosz.golaszewski@oss.qualcomm.com> wrote:
>
> This fixes two issues observed with shared GPIO management enabled.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
> ---
> Bartosz Golaszewski (2):
>       gpio: shared: fix deadlock on shared proxy's parent removal
>       gpio: shared: fix lockdep false positive by removing unneeded lock
>
>  drivers/gpio/gpiolib-shared.c | 9 +++------
>  1 file changed, 3 insertions(+), 6 deletions(-)
> ---
> base-commit: 5200f5f493f79f14bbdc349e402a40dfb32f23c8
> change-id: 20260521-gpio-shared-deadlock-c9b7697c0030
>
> Best regards,
> --
> Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
>

For the record: it seems to me that sashiko reports under this series
are incorrect. The model seems to confuse the GPIO shared proxy
devices (managing access to the real shared GPIOs) and the GPIO
controller devices exposing shared pins that are the parents of the
former. We never enter the same code paths for both when setting up or
tearing down shared proxies and lookups for them.

Bart