]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: ecc_strength is at ecc step granularity
authorMike Dunn <mikedunn@newsguy.com>
Wed, 25 Apr 2012 19:06:05 +0000 (12:06 -0700)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Sun, 29 Apr 2012 19:22:28 +0000 (22:22 +0300)
commitf3a6a805ecf78b1fd505c05b08f40ec892b80ac1
treeb3f3084b6720f0e8fd11d26a9071b4346ab68395
parentef83db6ab20139d2c0685d33498bdf4bee668d4f
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 [1], bit errors in excess of the strength of one
step can cause a hard error if they all occur within the same ecc region.

[1] 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>
drivers/mtd/nand/nand_base.c
include/linux/mtd/mtd.h