diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2018-09-25 11:46:55 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-09-27 23:29:57 +0100 |
commit | aea3877e24f3acc6145094848dbb85f9ce85674a (patch) | |
tree | a61aad463efa773ef8326d927d00b174586f58ea /drivers/spi/spidev.c | |
parent | 73569a50959e4ec63bcf05839a030e799a350de1 (diff) | |
download | linux-aea3877e24f3acc6145094848dbb85f9ce85674a.tar.gz linux-aea3877e24f3acc6145094848dbb85f9ce85674a.tar.bz2 linux-aea3877e24f3acc6145094848dbb85f9ce85674a.zip |
spi: spi-mem: Fix inverted logic in op sanity check
On r8a7791/koelsch:
m25p80 spi0.0: error -22 reading 9f
m25p80: probe of spi0.0 failed with error -22
Apparently the logic in spi_mem_check_op() is wrong, rejecting the
spi-mem operation if any buswidth is valid, instead of invalid.
Fixes: 380583227c0c7f52 ("spi: spi-mem: Add extra sanity checks on the op param")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spidev.c')
0 files changed, 0 insertions, 0 deletions