From: Brian Norris Date: Tue, 25 Sep 2012 03:40:53 +0000 (-0700) Subject: mtd: nand: increase max OOB size to 640 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b9e48534d8f4eb17d531f54d2cb3b9138db13ccb;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 2beeb6e4e4e6..24e915957e4f 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 /*