aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/config-4.9
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-11-03 09:53:54 +0100
committerFelix Fietkau <nbd@nbd.name>2017-11-06 16:38:25 +0100
commitc08293893aadca182b52ef96d3c2b1700282f0f2 (patch)
treeb7cd8f1ea172201bb358c920437952dc53cf6c95 /target/linux/generic/config-4.9
parent94491a15712732c56dccbf4593000376ae275134 (diff)
downloadupstream-c08293893aadca182b52ef96d3c2b1700282f0f2.tar.gz
upstream-c08293893aadca182b52ef96d3c2b1700282f0f2.tar.bz2
upstream-c08293893aadca182b52ef96d3c2b1700282f0f2.zip
kernel: add support for limiting 4K erase sector support based on flash chip size
Some targets need 4K sectors for small flash chips (e.g. some routerboards, where the entire chip is just one "erase block"), whereas on other devices 4K sectors lead to horrible flash erase/write performance. Set the default limit in the generic kernel configuration to 4 MiB to ensure that all new platforms don't use 4K sectors for bigger flash chips. On all existing targets use 16 MiB for now to avoid regressions. They will be changed individually in follow-up commits. Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/generic/config-4.9')
-rw-r--r--target/linux/generic/config-4.91
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/generic/config-4.9 b/target/linux/generic/config-4.9
index 9512e494af..e591ac6655 100644
--- a/target/linux/generic/config-4.9
+++ b/target/linux/generic/config-4.9
@@ -2632,6 +2632,7 @@ CONFIG_MTD_ROOTFS_ROOT_DEV=y
# CONFIG_MTD_SPINAND_MT29F is not set
# CONFIG_MTD_SPI_NOR is not set
# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set
+CONFIG_MTD_SPI_NOR_USE_4K_SECTORS_LIMIT=4096
CONFIG_MTD_SPLIT=y
# CONFIG_MTD_SPLIT_BRNIMAGE_FW is not set
# CONFIG_MTD_SPLIT_EVA_FW is not set