[PATCH] mtd: nand: docg4: ecc.read_page() returns 0 on uncorrectible errors

Artem Bityutskiy dedekind1 at gmail.com
Mon Sep 24 11:17:51 EDT 2012


On Tue, 2012-09-11 at 08:50 -0700, Mike Dunn wrote:
> Currently the docg4's ecc.read_page() method returns -EBADMSG when uncorrectible
> bitflips occur.  This is wrong; 0 should be returned in this case.  An error
> code should only be returned by this method in the case of a hardware error
> (probably -EIO).
> 
> Signed-off-by: Mike Dunn <mikedunn at newsguy.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/20120924/69c1692d/attachment.sig>


More information about the linux-mtd mailing list