]> 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)
commitffbbbece91b091836f0207fd36f28b82879808eb
tree8a6b4e5e336bac0bc5c7953e6a4e8900a1ecbb07
parent77e0a4623a7dc6c49e4b731092b7a6d5605e640c
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