mtd/drivers/mtd/nand nand.c,1.79,1.80

gleixner at infradead.org gleixner at infradead.org
Thu Apr 15 07:58:56 EDT 2004


Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv24366

Modified Files:
	nand.c 
Log Message:
check ecc really

Index: nand.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -r1.79 -r1.80
--- nand.c	15 Apr 2004 11:53:39 -0000	1.79
+++ nand.c	15 Apr 2004 11:58:53 -0000	1.80
@@ -933,6 +933,9 @@
 		for (i = 0, j = 0, datidx = 0; i < this->eccsteps; i++, datidx += ecc) {
 			ecc_status = this->correct_data(mtd, &data_poi[datidx], &ecc_code[j], &ecc_calc[j]);
 			
+			/* Get next chunk of ecc bytes */
+			j += eccmode == NAND_ECC_HW6_512 ? 6 : 3;
+			
 			/* check, if we have a fs supplied oob-buffer, 
 			 * This is the legacy mode. Used by YAFFS1
 			 */




More information about the linux-mtd-cvs mailing list