linux/drivers/mtd/spi-nor
Ezequiel García 32321e950d mtd: spi-nor: wait until lock/unlock operations are ready
On Micron and Numonyx devices, the status register write command
(WRSR), raises a work-in-progress bit (WIP) on the status register.
The datasheets for these devices specify that while the status
register write is in progress, the status register WIP bit can still
be read to check the end of the operation.

This commit adds a wait_till_ready call on lock/unlock operations,
which is required for Micron and Numonyx but should be harmless for
others. This is needed to prevent applications from issuing erase or
program operations before the unlock operation is completed.

Reported-by: Stas Sergeev <stsp@list.ru>
Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
2016-01-06 17:18:34 -08:00
..
fsl-quadspi.c mtd: fsl-quadspi: possible NULL dereference 2015-11-18 10:31:23 -08:00
Kconfig mtd: mtk-nor: new Mediatek serial flash controller driver 2015-11-20 17:35:16 -08:00
Makefile mtd: mtk-nor: new Mediatek serial flash controller driver 2015-11-20 17:35:16 -08:00
mtk-quadspi.c mtd: mtk-nor: adjust sequence of trigger function and assignment function 2015-12-18 15:05:43 -08:00
nxp-spifi.c mtd: spi-nor: drop unnecessary partition parser data 2015-11-11 13:58:51 -08:00
spi-nor.c mtd: spi-nor: wait until lock/unlock operations are ready 2016-01-06 17:18:34 -08:00