Files
linux/drivers/gpio
Bartosz Golaszewski 310a4a9cbb gpio: shared: shorten the critical section in gpiochip_setup_shared()
Commit 710abda580 ("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.

Fixes: 710abda580 ("gpio: shared: call gpio_chip::of_xlate() if set")
Reported-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://patch.msgid.link/20260325-gpio-shared-deadlock-v1-1-e4e7a5319e95@oss.qualcomm.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
2026-03-30 09:51:15 +02:00
..
2025-11-25 14:10:06 +01:00
2026-01-13 15:17:35 +01:00
2025-11-25 14:10:07 +01:00
2025-11-25 14:10:06 +01:00
2025-11-25 14:10:07 +01:00