]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit9cb2ff11171264d10be7ea9e31d9ee5d49ba84a5
treef78e27aca4598f34083e8aeafe55cb139cdd12ce
parent0e85ee897858b1c7a5de53f496d016899d9639c5
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