mtd/drivers/mtd/nand diskonchip.c,1.12,1.13

dbrown at infradead.org dbrown at infradead.org
Thu Jun 17 20:51:42 EDT 2004


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

Modified Files:
	diskonchip.c 
Log Message:
Don't reset the ECC engine in the READSYN case (which we should ignore).


Index: diskonchip.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/diskonchip.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- diskonchip.c	17 Jun 2004 02:41:19 -0000	1.12
+++ diskonchip.c	18 Jun 2004 00:51:39 -0000	1.13
@@ -449,12 +449,13 @@
 	unsigned long docptr = doc->virtadr;
 
 	/* Prime the ECC engine */
-	WriteDOC(DOC_ECC_RESET, docptr, ECCConf);
 	switch(mode) {
 	case NAND_ECC_READ:
+		WriteDOC(DOC_ECC_RESET, docptr, ECCConf);
 		WriteDOC(DOC_ECC_EN, docptr, ECCConf);
 		break;
 	case NAND_ECC_WRITE:
+		WriteDOC(DOC_ECC_RESET, docptr, ECCConf);
 		WriteDOC(DOC_ECC_EN | DOC_ECC_RW, docptr, ECCConf);
 		break;
 	}	





More information about the linux-mtd-cvs mailing list