OpenCloudOS-Kernel/drivers/mtd/nand/raw/ingenic
Paul Cercueil 0171480007 mtd: rawnand: ingenic: JZ4740 needs 'oob_first' read page function
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: a0ac778eb8 ("mtd: rawnand: ingenic: Add support for the JZ4740")
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20211016132228.40254-5-paul@crapouillou.net
2021-11-19 19:43:11 +01:00
..
Kconfig mtd: rawnand: ingenic: Add dependency on MIPS || COMPILE_TEST 2020-03-11 16:17:55 +01:00
Makefile mtd: rawnand: Drop obsolete JZ4740 NAND driver 2019-07-30 10:41:54 -07:00
ingenic_ecc.c mtd: rawnand: ingenic: remove redundant get_device() in ingenic_ecc_get() 2020-12-10 22:37:31 +01:00
ingenic_ecc.h mtd: rawnand: ingenic: Separate top-level and SoC specific code 2019-04-08 10:21:04 +02:00
ingenic_nand_drv.c mtd: rawnand: ingenic: JZ4740 needs 'oob_first' read page function 2021-11-19 19:43:11 +01:00
jz4725b_bch.c mtd: Convert fallthrough comments into statements 2020-03-30 10:14:54 +02:00
jz4740_ecc.c mtd: rawnand: ingenic: cleanup ARRAY_SIZE() vs sizeof() use 2020-07-07 20:44:43 +02:00
jz4780_bch.c mtd: Convert fallthrough comments into statements 2020-03-30 10:14:54 +02:00