mtd/drivers/mtd/nand nand.c,1.38,1.39

gleixner at infradead.org gleixner at infradead.org
Tue Feb 18 07:12:18 EST 2003


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

Modified Files:
	nand.c 
Log Message:
fix ecc_none case in nand_write_page

Index: nand.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- nand.c	18 Feb 2003 10:09:31 -0000	1.38
+++ nand.c	18 Feb 2003 12:12:15 -0000	1.39
@@ -382,7 +382,8 @@
 	switch (eccmode) {
 	/* No ecc and software ecc 3/256, write all */
 	case NAND_ECC_NONE:
-		printk (KERN_WARNING "Writing data without ECC to NAND-FLASH is not recommended");
+		printk (KERN_WARNING "Writing data without ECC to NAND-FLASH is not recommended\n");
+		break;
 	case NAND_ECC_SOFT:
 		this->calculate_ecc (&this->data_poi[0], &(ecc_code[0]));
 		for (i = 0; i < 3; i++)
@@ -604,6 +605,7 @@
 		j = 0;
 		switch (eccmode) {
 		case NAND_ECC_NONE:	/* No ECC, Read in a page */		
+			printk (KERN_WARNING "Reading data from NAND FLASH without ECC is not recommended\n");
 			while (j < end)
 				data_poi[j++] = readb (this->IO_ADDR_R);
 			break;





More information about the linux-mtd-cvs mailing list