mtd: rawnand: davinci: Don't calculate ECC when reading page
authorPaul Cercueil <paul@crapouillou.net>
Sat, 16 Oct 2021 13:22:24 +0000 (14:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:02:48 +0000 (11:02 +0100)
commiteebc910e09d48f1f47670993c29389f728c5e4c6
treea9869fa3422ecd83eee9b8e49dee81538d8f73b4
parent5794c37d2a98c2a6817a3da47c8b4defe47bf41e
mtd: rawnand: davinci: Don't calculate ECC when reading page

commit 71e89591502d737c10db2bd4d8fcfaa352552afb upstream.

The function nand_davinci_read_page_hwecc_oob_first() does read the ECC
data from the OOB area. Therefore it does not need to calculate the ECC
as it is already available.

Cc: <stable@vger.kernel.org> # v5.2
Fixes: a0ac778eb82c ("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-1-paul@crapouillou.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/nand/raw/davinci_nand.c