]> Gentwo Git Trees - linux/.git/commit
mtd: spinand: set bitflip_threshold to 75% of ECC strength
authorDaniel Golle <daniel@makrotopia.org>
Mon, 12 Aug 2024 01:56:41 +0000 (02:56 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 23 Aug 2024 17:29:18 +0000 (19:29 +0200)
commit1824520e7477bedf76bd08c32261c755e6405cd9
tree8635af3d83b1b5308ed58dfbee97f02fe60443ec
parente2a9fcb36e851adb5b25c4acea53a290fd48a636
mtd: spinand: set bitflip_threshold to 75% of ECC strength

Reporting an unclean read from SPI-NAND only when the maximum number
of correctable bitflip errors has been hit seems a bit late.
UBI LEB scrubbing, which depends on the lower MTD device reporting
correctable bitflips, then only kicks in when it's almost too late.

Set bitflip_threshold to 75% of the ECC strength, which is also the
default for raw NAND.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/2117e387260b0a96f95b8e1652ff79e0e2d71d53.1723427450.git.daniel@makrotopia.org
drivers/mtd/nand/spi/core.c