mtd: nand: increase max OOB size to 640

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sat Sep 29 10:59:55 EDT 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=b9e48534d8f4eb17d531f54d2cb3b9138db13ccb
Commit:     b9e48534d8f4eb17d531f54d2cb3b9138db13ccb
Parent:     e3b88bd604283ef83ae6e8f53622d5b1ffe9d43a
Author:     Brian Norris <computersforpeace at gmail.com>
AuthorDate: Mon Sep 24 20:40:53 2012 -0700
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Sat Sep 29 15:58:09 2012 +0100

    mtd: nand: increase max OOB size to 640
    
    Some Hynix and Samsung MLC NAND have 640B OOB size. Sooner or later, we should
    dynamically allocate the buffers that use these macros.
    
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
    Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 include/linux/mtd/nand.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 2beeb6e..24e9159 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -56,7 +56,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	576
+#define NAND_MAX_OOBSIZE	640
 #define NAND_MAX_PAGESIZE	8192
 
 /*



More information about the linux-mtd-cvs mailing list