mtd: gpmi: update the bitflip_threshold
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Tue Jul 17 09:59:01 EDT 2012
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=e0dd89c56edc9274c513dbd2ba6dc8229aeeaa44
Commit: e0dd89c56edc9274c513dbd2ba6dc8229aeeaa44
Parent: c50c69402ac24641da38c146796c199387b97f8d
Author: Huang Shijie <b32955 at freescale.com>
AuthorDate: Tue Jul 3 16:24:33 2012 +0800
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Tue Jul 17 14:48:09 2012 +0100
mtd: gpmi: update the bitflip_threshold
The origin code misses to update the bitflip_threshold when
we have already get the right ecc_strength.
The patch fixes it.
Signed-off-by: Huang Shijie <b32955 at freescale.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
index 5d9796a..9da9ee8 100644
--- a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
+++ b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
@@ -1442,6 +1442,7 @@ static int gpmi_pre_bbt_scan(struct gpmi_nand_data *this)
/* Adjust the ECC strength according to the chip. */
this->nand.ecc.strength = this->bch_geometry.ecc_strength;
this->mtd.ecc_strength = this->bch_geometry.ecc_strength;
+ this->mtd.bitflip_threshold = this->bch_geometry.ecc_strength;
/* NAND boot init, depends on the gpmi_set_geometry(). */
return nand_boot_init(this);
More information about the linux-mtd-cvs
mailing list