Skip to content
Snippets Groups Projects
Commit 7c28a1cf authored by Benoît Thébaudeau's avatar Benoît Thébaudeau Committed by Scott Wood
Browse files

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: default avatarBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
parent 0e499b07
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment