diff options
author | Huang Shijie <b32955@freescale.com> | 2013-08-16 02:10:06 (GMT) |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-08-30 20:38:02 (GMT) |
commit | bdf69c47ac67480122b8842acf0ea75c0d18a5e9 (patch) | |
tree | b654f9cb8b80a515823cb36867cb0e4697b9fc29 /drivers/mtd/nand | |
parent | bf977e3f158dc949fd6e1e4195f80d42232cb5fa (diff) | |
download | linux-fsl-qoriq-bdf69c47ac67480122b8842acf0ea75c0d18a5e9.tar.xz |
mtd: set the ecc step size for master/slave mtd_info
Set the ecc step size for master/slave mtd_info{}.
Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/nand_base.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 761ef2f..49a9780 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -3788,6 +3788,7 @@ int nand_scan_tail(struct mtd_info *mtd) /* propagate ecc info to mtd_info */ mtd->ecclayout = chip->ecc.layout; mtd->ecc_strength = chip->ecc.strength; + mtd->ecc_step_size = chip->ecc.size; /* * Initialize bitflip_threshold to its default prior scan_bbt() call. * scan_bbt() might invoke mtd_read(), thus bitflip_threshold must be |