]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: mt7621: use the generic GPIO chip lock for IRQ handling
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 10 Sep 2025 07:12:45 +0000 (09:12 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 12 Sep 2025 07:22:44 +0000 (09:22 +0200)
commit2c1f22fa54fcbf8fbd9c03f5d341c73ef36c6d27
tree1114b8ce70302ecc9a0c480c76dc6713e142d9d4
parent80fd7e96d669d729d9e01bfa3e2b60ea6b500e20
gpio: mt7621: use the generic GPIO chip lock for IRQ handling

This driver uses its own spinlock in interrupt routines while the
generic GPIO chip callbacks use a separate one. This is, of course, racy
so use the fact that the lock in generic GPIO chip is also a spinlock and
convert the interrupt handling functions in this module to using the
provided generic GPIO chip locking API.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20250910-gpio-mmio-gpio-conv-part4-v2-9-f3d1a4c57124@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-mt7621.c