[PATCH v2] MTD: at91: atmel_nand: return bit flips for the PMECC read_page()
Artem Bityutskiy
dedekind1 at gmail.com
Mon Dec 3 09:35:16 EST 2012
On Tue, 2012-11-27 at 18:50 +0800, Josh Wu wrote:
> This patch fix pmecc's read_page() to return maximum number of bitflips, 0 if uncorrectable.
>
> In the commit: 3f91e94f7f511de74c0d2abe08672ccdbdd1961c ("mtd: nand: read_page() returns max_bitflips ()"),
> The ecc.read_page() is changed to return the maximum number of bitflips.
> And when meet uncorrectable bitflips it needs to return 0.
>
> See the comment in nand.h:
> * @read_page: function to read a page according to the ECC generator
> * requirements; returns maximum number of bitflips corrected in
> * any single ECC step, 0 if bitflips uncorrectable, -EIO hw error
>
> Signed-off-by: Josh Wu <josh.wu at atmel.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-arm-kernel/attachments/20121203/3dc8bf5f/attachment.sig>
More information about the linux-arm-kernel
mailing list