On Tue, 2020-05-19 at 07:45:44 UTC, Miquel Raynal wrote: > The main NAND read page function can loop over "page reads" many times > in if the reading reports uncorrectable error(s) and if the chip > supports the read_retry feature. > > In this case, the number of bitflips is summarized between > attempts. Fix this by re-initializing the entire mtd_ecc_stats object > each time we retry. > > Suggested-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxx> > Signed-off-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx> > Reviewed-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxx> Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next. Miquel ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/