mtd/drivers/mtd/nand nand_base.c,1.103,1.104

dbrown at infradead.org dbrown at infradead.org
Thu Jun 17 20:01:30 EDT 2004


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

Modified Files:
	nand_base.c 
Log Message:
Use the right buffers in the right places.


Index: nand_base.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand_base.c,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -r1.103 -r1.104
--- nand_base.c	17 Jun 2004 07:44:52 -0000	1.103
+++ nand_base.c	18 Jun 2004 00:01:27 -0000	1.104
@@ -1164,12 +1164,12 @@
 					/* Some hw ecc generators need to know when the
 					 * syndrome is read from flash */
 					this->enable_hwecc(mtd, NAND_ECC_READSYN);
-					this->read_buf(mtd, &oob_buf[i], eccbytes);
+					this->read_buf(mtd, &oob_data[i], eccbytes);
 					/* We calc error correction directly, it checks the hw
 					 * generator for an error, reads back the syndrome and
 					 * does the error correction on the fly */
-					if (this->correct_data(mtd, &data_poi[datidx], &ecc_code[i], &oob_buf[i]) == -1) {
-						DEBUG (MTD_DEBUG_LEVEL0, "nand_read_ecc: " "Failed ECC read, page 0x%08x\n", page);
+					if (this->correct_data(mtd, &data_poi[datidx], &oob_data[i], &ecc_code[i]) == -1) {
+						DEBUG (MTD_DEBUG_LEVEL0, "DBB nand_read_ecc: " "Failed ECC read, page 0x%08x\n", page);
 						ecc_failed++;
 					}
 				} else





More information about the linux-mtd-cvs mailing list