mtd: rawnand: micron: Update ecc_stats.corrected
authorBoris Brezillon <boris.brezillon@bootlin.com>
Wed, 20 Jun 2018 07:44:43 +0000 (09:44 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 2 Jul 2018 07:01:34 +0000 (09:01 +0200)
commitac8cf0b9e784acaf6fa20de89cb23b156834ca01
tree3a75add4889243947e16fb0efe62bedb3eab0b65
parentefc6362c6f8c1e74b340e2611f1b35e7d557ce7b
mtd: rawnand: micron: Update ecc_stats.corrected

Even if we can't update ecc_stats.corrected with an accurate value we
should at least increase the number of bitflips so that MTD users can
know that there was some bitflips.

Just add chip->ecc.strength to mtd->ecc_stats.corrected which should
account for the worst case situation.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/nand_micron.c