]> 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)
commit3be1c8570a9c57599d7c5aae02dfadc81972b10e
tree75f6441bec7387039a6934bc5f0f16424ca77a9b
parenta36719e62e07156e496835c7a9fb620a9c9a14c1
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: 9a59b75e09ee ("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