]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: spinand: Use the external ECC engine logic
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 1 Oct 2020 10:20:11 +0000 (12:20 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 10 Dec 2020 21:37:30 +0000 (22:37 +0100)
commit40f7f1d2c7658db352c139f84d673a6fb7b7e291
tree96d7075ad6c54bf847b306e286ceaac931595216
parentc856a89dc3484d351470494c6769abc848b6f4b1
mtd: spinand: Use the external ECC engine logic

Now that all the logic is available in the NAND core, let's use it
from the SPI-NAND core. Right now there is no functional change as the
default ECC engine for SPI-NANDs is set to 'on-die', but user can now
use software correction if they want to by just setting the right
properties in the DT.

Also note that the OOB layout handling is removed from the SPI-NAND
core as each ECC engine is supposed to handle it by it's own; users
should not be aware of that.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20201001102014.20100-4-miquel.raynal@bootlin.com
drivers/mtd/nand/spi/Kconfig
drivers/mtd/nand/spi/core.c