Skip to content

Commit b9e4853

Browse files
computersforpeaceDavid Woodhouse
authored andcommitted
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@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
1 parent e3b88bd commit b9e4853

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/linux/mtd/nand.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ extern int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
5656
* is supported now. If you add a chip with bigger oobsize/page
5757
* adjust this accordingly.
5858
*/
59-
#define NAND_MAX_OOBSIZE 576
59+
#define NAND_MAX_OOBSIZE 640
6060
#define NAND_MAX_PAGESIZE 8192
6161

6262
/*

0 commit comments

Comments
 (0)