]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb33f0ad8edbdcf49eb2aed89c9ba54635cf6a77f
tree8a6b4e5e336bac0bc5c7953e6a4e8900a1ecbb07
parent72c947294252cbe2f65f649bd9bf0ffe56abd5f0
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