diff options
author | Benoît Thébaudeau <benoit.thebaudeau@advansee.com> | 2012-08-13 22:50:19 +0200 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2012-09-17 19:51:45 -0500 |
commit | 7c28a1cfdf5e919f2a09abb644f614f1b67d3322 (patch) | |
tree | 0fa9526f5524c3a0ab3c9481d261e66f4456e44f /drivers | |
parent | 0e499b07ef417b153e3feb54c249d56edbc364b4 (diff) | |
download | u-boot-imx-7c28a1cfdf5e919f2a09abb644f614f1b67d3322.zip u-boot-imx-7c28a1cfdf5e919f2a09abb644f614f1b67d3322.tar.gz u-boot-imx-7c28a1cfdf5e919f2a09abb644f614f1b67d3322.tar.bz2 |
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 <benoit.thebaudeau@advansee.com>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/nand/mxc_nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index 7a180e1..2ae41dc 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; } |