aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorSergey Sergeev <adron@yapic.net>2017-05-31 11:00:01 +0300
committerFelix Fietkau <nbd@nbd.name>2017-05-31 11:36:21 +0200
commit9e1bc27e6d67fa29791eb0fac5e5f0066d12a761 (patch)
treee6e72ae377fa9f87df4e241cc29c61a8300a509d /target/linux/ar71xx
parentb757de65b3c3aa210022c65445df1d6dbbf9eadd (diff)
downloadupstream-9e1bc27e6d67fa29791eb0fac5e5f0066d12a761.tar.gz
upstream-9e1bc27e6d67fa29791eb0fac5e5f0066d12a761.tar.bz2
upstream-9e1bc27e6d67fa29791eb0fac5e5f0066d12a761.zip
ar71xx: Fix UBIFS work on Mikrotik RB95x devices
If nand chip has no NAND_NO_SUBPAGE_WRITE flag on its options ubifs can't use it mtd devices and the kernel crashes with error: __nand_correct_data: uncorrectable ECC error Signed-off-by: Sergey Sergeev <adron@yapic.net>
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c
index 05e15e77e1..e940d6cc11 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c
@@ -165,6 +165,8 @@ static int rb95x_nand_scan_fixup(struct mtd_info *mtd)
chip->ecc.layout = &rb95x_nand_ecclayout;
}
+ chip->options = NAND_NO_SUBPAGE_WRITE;
+
return 0;
}