Commit 811db83
mtd: rawnand: Ensure ECC configuration is propagated to upper layers
commit 3a1b777 upstream.
Until recently the "upper layer" was MTD. But following incremental
reworks to bring spi-nand support and more recently generic ECC support,
there is now an intermediate "generic NAND" layer that also needs to get
access to some values. When using "converted" ECC engines, like the
software ones, these values are already propagated correctly. But
otherwise when using good old raw NAND controller drivers, we need to
manually set these values ourselves at the end of the "scan" operation,
once these values have been negotiated.
Without this propagation, later (generic) checks like the one warning
users that the ECC strength is not high enough might simply no longer
work.
Fixes: 8c12672 ("mtd: rawnand: Use the ECC framework nand_ecc_is_strong_enough() helper")
Cc: stable@vger.kernel.org
Reported-by: Sascha Hauer <s.hauer@pengutronix.de>
Closes: https://lore.kernel.org/all/Zhe2JtvvN1M4Ompw@pengutronix.de/
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Tested-by: Sascha Hauer <s.hauer@pengutronix.de>
Link: https://lore.kernel.org/linux-mtd/20240507085842.108844-1-miquel.raynal@bootlin.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent b6d2239 commit 811db83
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6301 | 6301 | | |
6302 | 6302 | | |
6303 | 6303 | | |
| 6304 | + | |
6304 | 6305 | | |
6305 | 6306 | | |
6306 | 6307 | | |
| |||
6445 | 6446 | | |
6446 | 6447 | | |
6447 | 6448 | | |
6448 | | - | |
| 6449 | + | |
6449 | 6450 | | |
| 6451 | + | |
| 6452 | + | |
6450 | 6453 | | |
| 6454 | + | |
| 6455 | + | |
6451 | 6456 | | |
6452 | 6457 | | |
6453 | 6458 | | |
6454 | 6459 | | |
6455 | 6460 | | |
6456 | 6461 | | |
6457 | 6462 | | |
| 6463 | + | |
| 6464 | + | |
6458 | 6465 | | |
6459 | 6466 | | |
6460 | 6467 | | |
| |||
0 commit comments