]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit61946cf38106f6b1612329c15165e2ad484c8a26
tree75f6441bec7387039a6934bc5f0f16424ca77a9b
parent403498f0b6d54603eb81ff548b656dd02a058115
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: 8b21ef0607ed ("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