0171480007
The ECC engine on the JZ4740 SoC requires the ECC data to be read before
the page; using the default page reading function does not work. Indeed,
the old JZ4740 NAND driver (removed in 5.4) did use the 'OOB first' flag
that existed back then.
Use the newly created nand_read_page_hwecc_oob_first() to address this
issue.
This issue was not found when the new ingenic-nand driver was developed,
most likely because the Device Tree used had the nand-ecc-mode set to
"hw_oob_first", which seems to not be supported anymore.
Cc: <stable@vger.kernel.org> # v5.2
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
ingenic_ecc.c | ||
ingenic_ecc.h | ||
ingenic_nand_drv.c | ||
jz4725b_bch.c | ||
jz4740_ecc.c | ||
jz4780_bch.c |