Skip to content

Commit d71ffb9

Browse files
adron-snbd168
authored andcommitted
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 <[email protected]>
1 parent 5261766 commit d71ffb9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ static int rb95x_nand_scan_fixup(struct mtd_info *mtd)
165165
chip->ecc.layout = &rb95x_nand_ecclayout;
166166
}
167167

168+
chip->options = NAND_NO_SUBPAGE_WRITE;
169+
168170
return 0;
169171
}
170172

0 commit comments

Comments
 (0)