mtd: rawnand: Make sure we wait tWB before polling the STATUS reg
authorBoris Brezillon <boris.brezillon@bootlin.com>
Fri, 4 May 2018 19:24:31 +0000 (21:24 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Thu, 10 May 2018 06:40:39 +0000 (08:40 +0200)
commit3057fcef385348fe85173f1b0c824d89f1176f72
tree75f6441bec7387039a6934bc5f0f16424ca77a9b
parenta2ee41fd953e7c3ff6c55a3038c80354d191a318
mtd: rawnand: Make sure we wait tWB before polling the STATUS reg

NAND chips require a bit of time to take the NAND operation into
account and set the BUSY bit in the STATUS reg. Make sure we don't poll
the STATUS reg too early in nand_soft_waitrdy().

Fixes: 8878b126df76 ("mtd: nand: add ->exec_op() implementation")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/nand_base.c