[PATCH] nand_wait : warn if the nand is busy on exit
Artem Bityutskiy
dedekind1 at gmail.com
Thu Nov 15 09:20:00 EST 2012
On Mon, 2012-11-05 at 15:00 +0100, Matthieu CASTET wrote:
> This patch allow to detect buggy driver/hardware with
> bad RnB (dev_ready) management or when timeout occurs in polling mode.
>
> This works when dev_ready is set or not set.
> There are 2 methods to wait for an erase/program command completion:
>
> 1. Wait until nand RnB pin goes high (that's what chip->dev_ready usually does)
> 2. Poll the device: send a status (0x70) command and read status byte in a loop
> until bit NAND_STATUS_READY is set
>
> In all cases, you should send a status command after completion, to check if
> the operation was successful. And if the operation completed, the status should
> have bit NAND_STATUS_READY set.
>
> Signed-off-by: Matthieu CASTET <matthieu.castet at parrot.com>
> CC: Ivan Djelic <ivan.djelic at parrot.com>
Pushed to l2-mtd.git, thanks!
--
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20121115/6898e572/attachment.sig>
More information about the linux-mtd
mailing list