diff options
author | Huang Shijie <b32955@freescale.com> | 2012-07-03 04:24:33 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-07-17 09:48:09 -0400 |
commit | e0dd89c56edc9274c513dbd2ba6dc8229aeeaa44 (patch) | |
tree | 625ef97e1ba2ef59cf627c71f8cdf55346b74627 /drivers/mtd/nand | |
parent | c50c69402ac24641da38c146796c199387b97f8d (diff) |
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@freescale.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | 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 5d9796acc49a..9da9ee88a824 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) | |||
1442 | /* Adjust the ECC strength according to the chip. */ | 1442 | /* Adjust the ECC strength according to the chip. */ |
1443 | this->nand.ecc.strength = this->bch_geometry.ecc_strength; | 1443 | this->nand.ecc.strength = this->bch_geometry.ecc_strength; |
1444 | this->mtd.ecc_strength = this->bch_geometry.ecc_strength; | 1444 | this->mtd.ecc_strength = this->bch_geometry.ecc_strength; |
1445 | this->mtd.bitflip_threshold = this->bch_geometry.ecc_strength; | ||
1445 | 1446 | ||
1446 | /* NAND boot init, depends on the gpmi_set_geometry(). */ | 1447 | /* NAND boot init, depends on the gpmi_set_geometry(). */ |
1447 | return nand_boot_init(this); | 1448 | return nand_boot_init(this); |