]> asedeno.scripts.mit.edu Git - linux.git/commit
mtd: rawnand: Add the nand_wait_rdy_op() helper and use it
authorBoris Brezillon <boris.brezillon@bootlin.com>
Fri, 27 Jul 2018 07:44:18 +0000 (09:44 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 4 Sep 2018 20:50:49 +0000 (22:50 +0200)
commit52f05b6b87decfc74245ac16b4ae18e321b5ae98
tree3762211b251c5628575c29247851452800622f08
parent85e08e5864458b2e5e25defe2601bd835a42912c
mtd: rawnand: Add the nand_wait_rdy_op() helper and use it

In order to make sure we use ->exec_op() to wait for chip readiness
when it's available we provide an helper that does the selection
between ->exec_op(), udelay(chip->chip_delay) and nand_wait_ready()
based on what's implemented by the controller driver.

We then use it in nand_wait_readrdy().

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/nand_base.c