Skip to content
Commit 32cc2368 authored by Kai Stuhlemmer (ebee Engineering)'s avatar Kai Stuhlemmer (ebee Engineering) Committed by Eugen Hristev
Browse files

nand: atmel: Correct bitflips in erased pages



Not correcting anything in case of empty ECC data area
is not an appropriate strategy, because an uncorrected bit-flip
in an empty sector may cause upper layers (namely UBI) fail to work
properly. Therefore the approach chosen in Linux kernel and other
u-boot mtd drivers has been adopted, where a heuristic implemented
by nand_check_erased_ecc_chunk() is used in order to detect and
correct empty sectors.

Tested with sama5d3_xplained and sam9x60-ek.

Signed-off-by: default avatarKai Stuhlemmer (ebee Engineering) <kai.stuhlemmer@ebee.de>
Tested-by: default avatarTudor Ambarus <tudor.ambarus@microchip.com>
[ta: reorder if conditions, change commit subject, s/uint8_t/u8.]
Signed-off-by: default avatarTudor Ambarus <tudor.ambarus@microchip.com>
parent 55661ee0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment