diff options
author | Mike Dunn <mikedunn@newsguy.com> | 2012-04-25 12:06:05 -0700 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-05-13 23:09:58 -0500 |
commit | 86c2072be6f3c2150cc35f00233f2c31bdba2745 (patch) | |
tree | 56cfadbee0ea04a9436009743d5954ca447ebd96 /include/linux/mtd | |
parent | 09cbe581e346229e33c48da00439419ff2fe6af7 (diff) | |
download | linux-86c2072be6f3c2150cc35f00233f2c31bdba2745.tar.gz linux-86c2072be6f3c2150cc35f00233f2c31bdba2745.tar.bz2 linux-86c2072be6f3c2150cc35f00233f2c31bdba2745.zip |
mtd: ecc_strength is at ecc step granularity
ecc_strength element of mtd_info will be the strength of one ecc step, not of
the entire writesize, as was previously planned. This is the appropriate way
because, as was pointed out¹, bit errors in excess of the strength of one
step can cause a hard error if they all occur within the same ecc region.
¹ http://lists.infradead.org/pipermail/linux-mtd/2012-March/040313.html
Signed-off-by: Mike Dunn <mikedunn@newsguy.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r-- | include/linux/mtd/mtd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index cf5ea8cdcf8e..cd0119d19cd9 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h @@ -164,7 +164,7 @@ struct mtd_info { /* ECC layout structure pointer - read only! */ struct nand_ecclayout *ecclayout; - /* max number of correctible bit errors per writesize */ + /* max number of correctible bit errors per ecc step */ unsigned int ecc_strength; /* Data for variable erase regions. If numeraseregions is zero, |