Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
driver: nand: empty sector error correction fixed
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. Signed-off-by: Kai Stuhlemmer (ebee Engineering) <[email protected]>
- Loading branch information