Skip to contentSkip to conversation

mtd: Increase NAND_MAX_OOBSIZE from 128 to 256

PATCH Applied Kevin Cernekee 2 participants 2 messages May 4, 2010 – May 5, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: Increase NAND_MAX_OOBSIZE from 128 to 256

NAND_MAX_OOBSIZE needs to be increased to support newer parts with 218 or 224 byte spare areas. Tested with Samsung K9GAG08U0D.

---
 include/linux/mtd/nand.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/mtd/nand.h +1 -1
index 8bdacb8..50f3aa0 100644
@@ -53,7 +53,7 @@ extern int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
  * is supported now. If you add a chip with bigger oobsize/page
  * adjust this accordingly.
  */
-#define NAND_MAX_OOBSIZE	128
+#define NAND_MAX_OOBSIZE	256
 #define NAND_MAX_PAGESIZE	4096
 
 /*
Signature · 1 line
1.6.3.1
#1 lore raw
Quoted 4 lines · Kevin Cernekee

NAND_MAX_OOBSIZE needs to be increased to support newer parts with 218 or 224 byte spare areas. Tested with Samsung K9GAG08U0D.

Pushed to l2-mtd-2.6 / master

Signature · 2 lines
Best Regards,
Artem Bityutskiy (Артём Битюцкий)