mtd: ecc_strength is at ecc step granularity
authorMike Dunn <mikedunn@newsguy.com>
Wed, 25 Apr 2012 19:06:05 +0000 (12:06 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 14 May 2012 04:09:58 +0000 (23:09 -0500)
commit86c2072be6f3c2150cc35f00233f2c31bdba2745
tree56cfadbee0ea04a9436009743d5954ca447ebd96
parent09cbe581e346229e33c48da00439419ff2fe6af7
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>
drivers/mtd/nand/nand_base.c
include/linux/mtd/mtd.h