Title: [8876] trunk/drivers/mtd/nand/bf5xx_nand.c: bug [#6054] fix ecc correct while ecc size is 512 bytes
Revision
8876
Author
bhsong
Date
2010-06-02 03:44:51 -0400 (Wed, 02 Jun 2010)

Log Message

bug [#6054] fix ecc correct while ecc size is 512 bytes

In fact, nand base has origanized the ecc byte to be continuous.
we just need to move 3 bytes for second 256 bytes.

Modified Paths

Diff

Modified: trunk/drivers/mtd/nand/bf5xx_nand.c (8875 => 8876)


--- trunk/drivers/mtd/nand/bf5xx_nand.c	2010-06-02 06:49:07 UTC (rev 8875)
+++ trunk/drivers/mtd/nand/bf5xx_nand.c	2010-06-02 07:44:51 UTC (rev 8876)
@@ -322,8 +322,8 @@
 	/* If ecc size is 512, correct second 256 bytes */
 	if (chip->ecc.size == 512) {
 		dat += 256;
-		read_ecc += 8;
-		calc_ecc += 8;
+		read_ecc += 3;
+		calc_ecc += 3;
 		ret |= bf5xx_nand_correct_data_256(mtd, dat, read_ecc, calc_ecc);
 	}
 
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to