]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit20c780302e670f6080c6d967d3cde458054e22fd
tree3a75add4889243947e16fb0efe62bedb3eab0b65
parenta3911dc6bd13b567e900a913af7c6b527258985a
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