mtdblock: tolerate corrected bit-flips
authorBang Li <libang.linuxer@gmail.com>
Tue, 14 Mar 2023 16:56:53 +0000 (00:56 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 22 Mar 2023 16:02:19 +0000 (17:02 +0100)
commite6b0922a9c614d7689393391325c943b34afd6d4
tree35fc2b1d84abade681f223cb4c493bd93e488205
parent57150c40b6391bc350c6016641b2a487a3de3cba
mtdblock: tolerate corrected bit-flips

mtd_read() may return -EUCLEAN in case of corrected bit-flips.This
particular condition should not be treated like an error.

Signed-off-by: Bang Li <libang.linuxer@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230314165653.252673-1-libang.linuxer@gmail.com
drivers/mtd/mtdblock_ro.c