[PATCH 0/3] gpio: lock device when calling device_is_bound()

Bartosz Golaszewski posted 3 patches 6 days, 19 hours ago
drivers/gpio/gpio-aggregator.c |  9 ++++++---
drivers/gpio/gpio-sim.c        | 11 +++++++----
drivers/gpio/gpio-virtuser.c   |  9 ++++++---
3 files changed, 19 insertions(+), 10 deletions(-)
[PATCH 0/3] gpio: lock device when calling device_is_bound()
Posted by Bartosz Golaszewski 6 days, 19 hours ago
The kerneldoc for device_is_bound() says it must be called with the
device lock taken. Add missing synchronization to GPIO modules using it.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
Bartosz Golaszewski (3):
      gpio: sim: lock device when calling device_is_bound()
      gpio: aggregator: lock device when calling device_is_bound()
      gpio: virtuser: lock device when calling device_is_bound()

 drivers/gpio/gpio-aggregator.c |  9 ++++++---
 drivers/gpio/gpio-sim.c        | 11 +++++++----
 drivers/gpio/gpio-virtuser.c   |  9 ++++++---
 3 files changed, 19 insertions(+), 10 deletions(-)
---
base-commit: 5200f5f493f79f14bbdc349e402a40dfb32f23c8
change-id: 20260518-gpio-dev-lock-827253e58535

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Re: [PATCH 0/3] gpio: lock device when calling device_is_bound()
Posted by Bartosz Golaszewski 3 days, 16 hours ago
On Mon, 18 May 2026 11:53:16 +0200, Bartosz Golaszewski wrote:
> The kerneldoc for device_is_bound() says it must be called with the
> device lock taken. Add missing synchronization to GPIO modules using it.
> 
> 

Applied, thanks!

[1/3] gpio: sim: lock device when calling device_is_bound()
      https://git.kernel.org/brgl/c/e70ae40d6660c5428c790c329318c570b4d038ab
[2/3] gpio: aggregator: lock device when calling device_is_bound()
      https://git.kernel.org/brgl/c/598a2b3e2e0e6aa2e9f7843c96c45b5ea11e0411
[3/3] gpio: virtuser: lock device when calling device_is_bound()
      https://git.kernel.org/brgl/c/a4fa45c1d980bc2b9837f469119af24a9304a1fc

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>