mtd: rawnand: Add the nand_wait_readrdy() helper and use it
authorBoris Brezillon <boris.brezillon@bootlin.com>
Fri, 27 Jul 2018 07:44:17 +0000 (09:44 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 4 Sep 2018 20:24:55 +0000 (22:24 +0200)
commit85e08e5864458b2e5e25defe2601bd835a42912c
tree8a6b4e5e336bac0bc5c7953e6a4e8900a1ecbb07
parent57361846b52bc686112da6ca5368d11210796804
mtd: rawnand: Add the nand_wait_readrdy() helper and use it

The logic to wait for chip readiness after a page read has been
duplicated in nand_do_read_ops() and nand_do_read_oob(). Provide an
helper that does the right thing and call it where appropriate.

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