diff options
author | Marek Vasut <marex@denx.de> | 2023-01-16 10:49:56 +0100 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-01-16 10:54:45 +0100 |
commit | e5464277625c1aca5c002e0f470377cdd6816dcf (patch) | |
tree | 51ff1f68791aea0b93db3225e3d1412de6c337ff /drivers/usb/cdns3/cdns3-debug.h | |
parent | 5dc4c995db9eb45f6373a956eb1f69460e69e6d4 (diff) |
gpio: mxc: Protect GPIO irqchip RMW with bgpio spinlock
The driver currently performs register read-modify-write without locking
in its irqchip part, this could lead to a race condition when configuring
interrupt mode setting. Add the missing bgpio spinlock lock/unlock around
the register read-modify-write.
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Fixes: 07bd1a6cc7cbb ("MXC arch: Add gpio support for the whole platform")
Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions