OpenCloudOS-Kernel/drivers/mtd/nand/spi
Michał Kępień 7bea605692 mtd: add ECC error accounting for each read request
Extend struct mtd_req_stats with two new fields holding the number of
corrected bitflips and uncorrectable errors detected during a read
operation.  This is a prerequisite for ultimately passing those counters
to user space, where they can be useful to applications for making
better-informed choices about moving data around.

Unlike 'max_bitflips' (which is set - in a common code path - to the
return value of a function called while the MTD device's mutex is held),
these counters have to be maintained in each MTD driver which defines
the '_read_oob' callback because the statistics need to be calculated
while the MTD device's mutex is held.

Suggested-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220629125737.14418-4-kernel@kempniu.pl
2022-09-21 10:38:09 +02:00
..
Kconfig mtd: spinand: Use the external ECC engine logic 2020-12-10 22:37:30 +01:00
Makefile mtd: spinand: Add support for ATO25D1GA 2022-06-06 15:05:33 +02:00
ato.c mtd: spinand: Add support for ATO25D1GA 2022-06-06 15:05:33 +02:00
core.c mtd: add ECC error accounting for each read request 2022-09-21 10:38:09 +02:00
gigadevice.c mtd: spinand: gigadevice: add support for GD5FxGM7xExxG 2022-04-04 10:34:56 +02:00
macronix.c mtd: spinand: macronix: Use random program load 2022-01-23 12:36:22 +01:00
micron.c mtd: spinand: micron: Add support for MT29F2G01AAAED 2020-12-10 22:37:32 +01:00
paragon.c mtd: spinand: rework detect procedure for different READ_ID operation 2020-03-09 14:50:19 +01:00
toshiba.c mtd: spinand: toshiba: Demote non-conformant kernel-doc header 2020-11-20 12:37:31 +01:00
winbond.c mtd: spinand: rework detect procedure for different READ_ID operation 2020-03-09 14:50:19 +01:00
xtx.c mtd: spinand: Add support for XTX XT26G0xA 2022-04-21 09:34:12 +02:00