diff options
author | Miquel Raynal <miquel.raynal@free-electrons.com> | 2018-01-11 23:39:20 +0300 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2018-01-12 12:24:08 +0300 |
commit | 12663b442e5ac5aa3d6097cd3f287c71ba46d26e (patch) | |
tree | 8f7ccf588da802e26fc34653b535292d47d4706e /drivers/mtd/onenand/omap2.c | |
parent | 7cce5d835467ea66c342951d0ed6adaffe39b1c8 (diff) | |
download | linux-12663b442e5ac5aa3d6097cd3f287c71ba46d26e.tar.xz |
mtd: mtd_oobtest: Handle bitflips during reads
Reads from NAND devices usually trigger bitflips, this is an expected
behavior. While bitflips are under a given threshold, the MTD core
returns 0. However, when the number of corrected bitflips is above this
same threshold, -EUCLEAN is returned to inform the upper layer that this
block is slightly dying and soon the ECC engine will be overtaken so
actions should be taken to move the data out of it.
This particular condition should not be treated like an error and the
test should continue.
Signed-off-by: Miquel Raynal <miquel.raynal@free-electrons.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd/onenand/omap2.c')
0 files changed, 0 insertions, 0 deletions