commit | 52f05b6b87decfc74245ac16b4ae18e321b5ae98 | [log] [tgz] |
---|---|---|
author | Boris Brezillon <boris.brezillon@bootlin.com> | Fri Jul 27 09:44:18 2018 +0200 |
committer | Miquel Raynal <miquel.raynal@bootlin.com> | Tue Sep 04 22:50:49 2018 +0200 |
tree | 3762211b251c5628575c29247851452800622f08 | |
parent | 85e08e5864458b2e5e25defe2601bd835a42912c [diff] |
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>