mtd/drivers/mtd/nand nand_base.c,1.123,1.124

lavinen at infradead.org lavinen at infradead.org
Fri Dec 3 08:23:37 EST 2004


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

Modified Files:
	nand_base.c 
Log Message:
Fixed for the 12 byte HW ecc support.


Index: nand_base.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand_base.c,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -r1.123 -r1.124
--- nand_base.c	2 Nov 2004 22:36:59 -0000	1.123
+++ nand_base.c	3 Dec 2004 13:23:33 -0000	1.124
@@ -810,7 +810,7 @@
 	u_char *oob_buf,  struct nand_oobinfo *oobsel, int cached)
 {
 	int 	i, status;
-	u_char	ecc_code[8];
+	u_char	ecc_code[12];
 	int	eccmode = oobsel->useecc ? this->eccmode : NAND_ECC_NONE;
 	int  	*oob_config = oobsel->eccpos;
 	int	datidx = 0, eccidx = 0, eccsteps = this->eccsteps;
@@ -2469,6 +2469,7 @@
 	switch (this->eccmode) {
 	case NAND_ECC_HW12_2048:
 		this->eccsteps = mtd->oobblock / 2048;
+		this->eccbytes = 12;
 		break;
 	case NAND_ECC_HW3_512:
 	case NAND_ECC_HW6_512:





More information about the linux-mtd-cvs mailing list