mtd: nand: Support 'EXIT GET STATUS' command in nand_command[_lp]()
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 16 May 2017 16:35:45 +0000 (18:35 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 1 Jun 2017 08:09:34 +0000 (10:09 +0200)
commit2165c4a1f71a04c7ea6493f18740a3afd4e47e4f
treedd9337ccce3c06f3ee43676f196bd3f1104bddeb
parent41145649f4acb30249b636b945053db50c9331c5
mtd: nand: Support 'EXIT GET STATUS' command in nand_command[_lp]()

READ0 is sometimes used to exit GET STATUS mode. When this is the case
no address cycles are requested, and we can use this information to
detect that READSTART should not be issued after READ0 or that we
shouldn't wait for the chip to be ready.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
drivers/mtd/nand/nand_base.c