[PATCH/RFC] [MTD] Increase the MTD_MAX_ECCPOS_ENTRIES to 80

Kyungmin Park kyungmin.park at samsung.com
Fri Dec 14 01:45:55 EST 2007


Hi,

Besides from the SLC flash, MLC flash s required more powerful ECC scheme than 1-bit. Usually, it used the 4-bit ECC. It means it needs more eccpos.
However the current eccpos array doesn't fit for it.

So I hope to increase this one to 80.
I'm not sure the bare NAND needs more rooms.

Any comments are welcome.

Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
---
diff --git a/include/mtd/mtd-abi.h b/include/mtd/mtd-abi.h
index 5a61074..2e2f828 100644
--- a/include/mtd/mtd-abi.h
+++ b/include/mtd/mtd-abi.h
@@ -114,13 +114,14 @@ struct nand_oobfree {
 };
 
 #define MTD_MAX_OOBFREE_ENTRIES	8
+#define MTD_MAX_ECCPOS_ENTRIES	80
 /*
  * ECC layout control structure. Exported to userspace for
  * diagnosis and to allow creation of raw images
  */
 struct nand_ecclayout {
 	uint32_t eccbytes;
-	uint32_t eccpos[64];
+	uint32_t eccpos[MTD_MAX_ECCPOS_ENTRIES];
 	uint32_t oobavail;
 	struct nand_oobfree oobfree[MTD_MAX_OOBFREE_ENTRIES];
 };



More information about the linux-mtd mailing list