Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: nand: Increase the ecc placement locations to 640

Few devices like H27UBG8T2CTR have a writesize/oobsize of 8KB/640B.
This means that the maximum oobsize has gone up to 640 bytes and consequently
the maximum ecc placement locations have also gone up to 640.

Signed-off-by: Vipin Kumar <vipin.kumar@st.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>

authored by

Vipin Kumar and committed by
Artem Bityutskiy
2f25ae97 a4742d51

+1 -1
+1 -1
include/linux/mtd/mtd.h
··· 98 98 }; 99 99 100 100 #define MTD_MAX_OOBFREE_ENTRIES_LARGE 32 101 - #define MTD_MAX_ECCPOS_ENTRIES_LARGE 448 101 + #define MTD_MAX_ECCPOS_ENTRIES_LARGE 640 102 102 /* 103 103 * Internal ECC layout control structure. For historical reasons, there is a 104 104 * similar, smaller struct nand_ecclayout_user (in mtd-abi.h) that is retained