pinctrl: microchip-sgpio: lock RMW access
authorMichael Walle <michael@walle.cc>
Sat, 26 Feb 2022 20:45:03 +0000 (21:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:49 +0000 (14:23 +0200)
commit84940deb8dd35dc96385f8af3191dc91431b0831
treec87845ec47b999fef9ef00f6a0722a0fbff77c68
parentc6f009fe90f1648cd67c636bb495e80af915c115
pinctrl: microchip-sgpio: lock RMW access

[ Upstream commit 7996c5f5ec7a20b3f6b8fae93fcf3cb8f1c01743 ]

Protect any RMW access to the registers by a spinlock.

Fixes: 7e5ea974e61c ("pinctrl: pinctrl-microchip-sgpio: Add pinctrl driver for Microsemi Serial GPIO")
Signed-off-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20220226204507.2511633-2-michael@walle.cc
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/pinctrl-microchip-sgpio.c