]> git.baikalelectronics.ru Git - kernel.git/commit
spi: cadence-quadspi: Disable Auto-HW polling
authorApurva Nandan <a-nandan@ti.com>
Tue, 13 Jul 2021 12:57:41 +0000 (12:57 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 16 Jul 2021 18:02:49 +0000 (19:02 +0100)
commit4798294d16c1e1fcbae19f858f8f033249ad3609
treef78e27aca4598f34083e8aeafe55cb139cdd12ce
parent6efd1614f2fc47acfecc6f13448478eb8fd3d656
spi: cadence-quadspi: Disable Auto-HW polling

cadence-quadspi has a builtin Auto-HW polling funtionality using which
it keep tracks of completion of write operations. When Auto-HW polling
is enabled, it automatically initiates status register read operation,
until the flash clears its busy bit.

cadence-quadspi controller doesn't allow an address phase when
auto-polling the busy bit on the status register. Unlike SPI NOR
flashes, SPI NAND flashes do require the address of status register
when polling the busy bit using the read register operation. As
Auto-HW polling is enabled by default, cadence-quadspi returns a
timeout for every write operation after an indefinite amount of
polling on SPI NAND flashes.

Disable Auto-HW polling completely as the spi-nor core, spinand core,
etc. take care of polling the busy bit on their own.

Signed-off-by: Apurva Nandan <a-nandan@ti.com>
Link: https://lore.kernel.org/r/20210713125743.1540-2-a-nandan@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cadence-quadspi.c