]> git.baikalelectronics.ru Git - kernel.git/commit
spi: ti-qspi: Fix mmap read when more than one CS in use
authorVignesh R <vigneshr@ti.com>
Tue, 29 Jan 2019 07:44:22 +0000 (13:14 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 29 Jan 2019 12:08:03 +0000 (12:08 +0000)
commitd77625a3b691b0aeb53745a6dd19bcfd49bec3f3
tree46c5539af920b73eefc584e85ae97a4c1a537363
parent0e477d4ba7a4453ff3d66efb0c4674cefbdac7bb
spi: ti-qspi: Fix mmap read when more than one CS in use

Commit b7fd8f049ecb ("spi: spi-ti-qspi: add mmap mode read support") has
has got order of parameter wrong when calling regmap_update_bits() to
select CS for mmap access. Mask and value arguments are interchanged.
Code will work on a system with single slave, but fails when more than
one CS is in use. Fix this by correcting the order of parameters when
calling regmap_update_bits().

Fixes: b7fd8f049ecb ("spi: spi-ti-qspi: add mmap mode read support")
Cc: stable@vger.kernel.org
Signed-off-by: Vignesh R <vigneshr@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-ti-qspi.c