summaryrefslogtreecommitdiff
path: root/drivers/mtd/ssfdc.c
diff options
context:
space:
mode:
authorVignesh R <vigneshr@ti.com>2018-06-30 16:24:21 +0530
committerBoris Brezillon <boris.brezillon@bootlin.com>2018-07-03 10:01:44 +0200
commitaa7eee8a143a7e8b530eb1e75fb86cae793d1e21 (patch)
treeb8e949ab839c668758897988d5d9d79be115d5f1 /drivers/mtd/ssfdc.c
parent021c91791a5e7e85c567452f1be3e4c2c6cb6063 (diff)
mtd: spi-nor: cadence-quadspi: Fix direct mode write timeouts
Sometimes when writing large size files to flash in direct/memory mapped mode, it is seen that flash write enable command times out with error: [ 503.146293] cadence-qspi 47040000.ospi: Flash command execution timed out. This is because, we need to make sure previous direct write operation is complete by polling for IDLE bit in CONFIG_REG before starting the next operation. Fix this by polling for IDLE bit after memory mapped write. Fixes: a27f2eaf2b27 ("mtd: spi-nor: cadence-quadspi: Add support for direct access mode") Cc: stable@vger.kernel.org Signed-off-by: Vignesh R <vigneshr@ti.com> Reviewed-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Diffstat (limited to 'drivers/mtd/ssfdc.c')
0 files changed, 0 insertions, 0 deletions