Skip to content
Commit af61ea27 authored by Miquel Raynal's avatar Miquel Raynal Committed by Jagan Teki
Browse files

mtd: nand: pxa3xx: re-read a page in raw mode on uncorrectable error



This only applies on BCH path.

When an empty page is read, it triggers an uncorrectable error. While
this is expected, the ECC engine might produce itself bitflips in the
read data under certain layouts. To overcome this situation, always
re-read the entire page in raw mode and check for the whole page to be
empty.

Also report the right number of bitflips if there are any.

Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Acked-by: default avatarJagan Teki <jagan@openedev.com>
parent 6293b036
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment