mtd/drivers/mtd/nand au1550nd.c,1.1,1.2 diskonchip.c,1.8,1.9 tx4925ndfmc.c,1.1,1.2 tx4938ndfmc.c,1.1,1.2

gleixner at infradead.org gleixner at infradead.org
Sat Mar 27 14:55:56 EST 2004


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

Modified Files:
	au1550nd.c diskonchip.c tx4925ndfmc.c tx4938ndfmc.c 
Log Message:
fix verify functions to report errors on byte 0

Index: au1550nd.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/au1550nd.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- au1550nd.c	4 Mar 2004 06:59:48 -0000	1.1
+++ au1550nd.c	27 Mar 2004 19:55:53 -0000	1.2
@@ -138,7 +138,7 @@
 
 	for (i=0; i<len; i++)
 		if (buf[i] != (u_char)read_data_reg())
-			return i;
+			return -EFAULT;
 
 	return 0;
 }

Index: diskonchip.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/diskonchip.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- diskonchip.c	5 Nov 2003 16:52:34 -0000	1.8
+++ diskonchip.c	27 Mar 2004 19:55:53 -0000	1.9
@@ -176,7 +176,7 @@
 
 	for (i=0; i < len; i++)
 		if (buf[i] != ReadDOC(docptr, 2k_CDSN_IO))
-			return i;
+			return -EFAULT;
 	return 0;
 }
 

Index: tx4925ndfmc.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/tx4925ndfmc.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- tx4925ndfmc.c	4 Nov 2003 22:59:11 -0000	1.1
+++ tx4925ndfmc.c	27 Mar 2004 19:55:53 -0000	1.2
@@ -209,7 +209,7 @@
 
 	for (i=0; i<len; i++)
 		if (buf[i] != tx4925_read_nfmc(this->IO_ADDR_R))
-			return i;
+			return -EFAULT;
 
 	return 0;
 }

Index: tx4938ndfmc.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/tx4938ndfmc.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- tx4938ndfmc.c	4 Nov 2003 22:59:11 -0000	1.1
+++ tx4938ndfmc.c	27 Mar 2004 19:55:53 -0000	1.2
@@ -188,7 +188,7 @@
 
 	for (i=0; i<len; i++)
 		if (buf[i] != tx4938_read_nfmc(this->IO_ADDR_R))
-			return i;
+			return -EFAULT;
 
 	return 0;
 }




More information about the linux-mtd-cvs mailing list