]> git.ipfire.org Git - thirdparty/linux.git/commit
gpio: mpsse: ensure worker is torn down
authorMary Strodl <mstrodl@csh.rit.edu>
Tue, 14 Oct 2025 13:35:28 +0000 (09:35 -0400)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 21 Oct 2025 12:10:45 +0000 (14:10 +0200)
commit179ef1127d7a4f09f0e741fa9f30b8a8e7886271
tree6d227f4c160cc23439f6fee18b634b1d61e41ece
parent523ebae1cdcf8056dfe090f31284d1e5f5d1b73f
gpio: mpsse: ensure worker is torn down

When an IRQ worker is running, unplugging the device would cause a
crash. The sealevel hardware this driver was written for was not
hotpluggable, so I never realized it.

This change uses a spinlock to protect a list of workers, which
it tears down on disconnect.

Signed-off-by: Mary Strodl <mstrodl@csh.rit.edu>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20251014133530.3592716-3-mstrodl@csh.rit.edu
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-mpsse.c