]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: spl022: fix Microwire full duplex mode
authorThomas Perrot <thomas.perrot@bootlin.com>
Fri, 22 Oct 2021 14:21:04 +0000 (16:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Nov 2021 10:35:59 +0000 (11:35 +0100)
commit8d66989707573c2811f8aac6d89c3773eb0135d2
tree19855ffc9e685f0e061b467f290c55b7eabff268
parent274c04221d91f0de0eb25287a80ac5146d1dcf96
spi: spl022: fix Microwire full duplex mode

[ Upstream commit d81d0e41ed5fe7229a2c9a29d13bad288c7cf2d2 ]

There are missing braces in the function that verify controller parameters,
then an error is always returned when the parameter to select Microwire
frames operation is used on devices allowing it.

Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
Link: https://lore.kernel.org/r/20211022142104.1386379-1-thomas.perrot@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-pl022.c