diff options
author | Sergey Sergeev <adron@yapic.net> | 2017-05-31 11:00:01 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-07-05 12:48:58 +0200 |
commit | d71ffb9639564b91b92355fe35a72e0ed7cd2298 (patch) | |
tree | 3ba7958c015fa6c6128e51b2e9e647323ba12af7 /target | |
parent | 52617669c2467ba9964a153827aad1acad99f890 (diff) | |
download | mtk-20170518-d71ffb9639564b91b92355fe35a72e0ed7cd2298.zip mtk-20170518-d71ffb9639564b91b92355fe35a72e0ed7cd2298.tar.gz mtk-20170518-d71ffb9639564b91b92355fe35a72e0ed7cd2298.tar.bz2 |
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')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c | 2 |
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 05e15e7..e940d6c 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; } |