Skip to content
Commit e5464277 authored by Marek Vasut's avatar Marek Vasut Committed by Bartosz Golaszewski
Browse files

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: default avatarLinus Walleij <linus.walleij@linaro.org>
Reviewed-by: default avatarMarc Zyngier <maz@kernel.org>
Fixes: 07bd1a6c ("MXC arch: Add gpio support for the whole platform")
Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
parent 5dc4c995
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment