diff options
author | Vignesh R <vigneshr@ti.com> | 2018-06-30 16:24:21 +0530 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-07-03 10:01:44 +0200 |
commit | aa7eee8a143a7e8b530eb1e75fb86cae793d1e21 (patch) | |
tree | b8e949ab839c668758897988d5d9d79be115d5f1 /drivers/mtd/nftlmount.c | |
parent | 021c91791a5e7e85c567452f1be3e4c2c6cb6063 (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/nftlmount.c')
0 files changed, 0 insertions, 0 deletions