projects
/
wrapfs-5.3.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a68d351
)
spi: spl022: fix Microwire full duplex mode
author
Thomas Perrot
<thomas.perrot@bootlin.com>
Fri, 22 Oct 2021 14:21:04 +0000
(16:21 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 26 Nov 2021 10:48:21 +0000
(11:48 +0100)
[ 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
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-pl022.c
b/drivers/spi/spi-pl022.c
index f7f7ba17b40e97597ae76d2f7e58fae3844ec6ef..27cf77dfc6038a511ad0a23c99a53f92489895f2 100644
(file)
--- a/
drivers/spi/spi-pl022.c
+++ b/
drivers/spi/spi-pl022.c
@@
-1703,12
+1703,13
@@
static int verify_controller_parameters(struct pl022 *pl022,
return -EINVAL;
}
} else {
- if (chip_info->duplex != SSP_MICROWIRE_CHANNEL_FULL_DUPLEX)
+ if (chip_info->duplex != SSP_MICROWIRE_CHANNEL_FULL_DUPLEX)
{
dev_err(&pl022->adev->dev,
"Microwire half duplex mode requested,"
" but this is only available in the"
" ST version of PL022\n");
- return -EINVAL;
+ return -EINVAL;
+ }
}
}
return 0;