Skip to content

gpio: lock device when calling device_is_bound()

Bartosz Golaszewski linux-gpio lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20260518-gpio-dev-lock-827253e58535

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3gpio: sim: lock device when calling device_is_bound()drivers/gpio/gpio-sim.c+7 -40 replies
2/3gpio: aggregator: lock device when calling device_is_bound()drivers/gpio/gpio-aggregator.c+6 -30 replies
3/3gpio: virtuser: lock device when calling device_is_bound()drivers/gpio/gpio-virtuser.c+6 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

The kerneldoc for device_is_bound() says it must be called with the device lock taken. Add missing synchronization to GPIO modules using it.

---
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,

Signature · 1 line
Bartosz Golaszewski <[email protected]>