From: Sergey Sergeev Date: Wed, 31 May 2017 08:00:01 +0000 (+0300) Subject: ar71xx: Fix UBIFS work on Mikrotik RB95x devices X-Git-Tag: v17.01.3~79 X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=commitdiff_plain;h=d71ffb9639564b91b92355fe35a72e0ed7cd2298 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 --- 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; }