From: Benoît Thébaudeau Date: Mon, 13 Aug 2012 20:50:19 +0000 (+0200) Subject: mtd mxc nand: Fix ECC state after read_page_raw_syndrome() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7c28a1cfdf5e919f2a09abb644f614f1b67d3322;p=project%2Fbcm63xx%2Fu-boot.git mtd mxc nand: Fix ECC state after read_page_raw_syndrome() mxc_nand_read_page_raw_syndrome() should reenable ECC upon exit. This fixes ECC errors left uncorrected after a call to this function. Signed-off-by: Benoît Thébaudeau Cc: Scott Wood Cc: Stefano Babic Signed-off-by: Scott Wood --- diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index 7a180e1839..2ae41dcd1b 100644 --- a/drivers/mtd/nand/mxc_nand.c +++ b/drivers/mtd/nand/mxc_nand.c @@ -470,7 +470,7 @@ static int mxc_nand_read_page_raw_syndrome(struct mtd_info *mtd, size = mtd->oobsize - (oob - chip->oob_poi); if (size) chip->read_buf(mtd, oob, size); - _mxc_nand_enable_hwecc(mtd, 0); + _mxc_nand_enable_hwecc(mtd, 1); return 0; }