]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi-ti-qspi: Fix a bug when accessing non default CS
authorVignesh Raghavendra <vigneshr@ti.com>
Wed, 11 Dec 2019 15:52:16 +0000 (21:22 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 11 Dec 2019 16:48:32 +0000 (16:48 +0000)
commit583bcd7cc8de5c8a5d8ae943ddaaf03cbf551636
tree79b8e4561191590b0f44f05384f7af2f97ff4454
parent73a2eeadc74aaf4e60792054ccc81d4a40803605
spi: spi-ti-qspi: Fix a bug when accessing non default CS

When switching ChipSelect from default CS0 to any other CS, driver fails
to update the bits in system control module register that control which
CS is mapped for MMIO access. This causes reads to fail when driver
tries to access QSPI flash on CS1/2/3.

Fix this by updating appropriate bits whenever active CS changes.

Reported-by: Andreas Dannenberg <dannenberg@ti.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Link: https://lore.kernel.org/r/20191211155216.30212-1-vigneshr@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-ti-qspi.c