]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: bitflip_threshold added to mtd_info and sysfs
authorMike Dunn <mikedunn@newsguy.com>
Wed, 25 Apr 2012 19:06:08 +0000 (12:06 -0700)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Sun, 29 Apr 2012 19:22:28 +0000 (22:22 +0300)
commitfe962db2cc8c7089b12d1e23521716c0cce279be
treec961b0824e39fb5fd5675715762a2a594042d411
parent2f53a94f903189cd6b8a701297b11fca8e4b693f
mtd: bitflip_threshold added to mtd_info and sysfs

An element 'bitflip_threshold' is added to struct mtd_info, and also exposed as
a read/write variable in sysfs.  This will be used to determine whether or not
mtd_read() returns -EUCLEAN or 0 (absent a hard error).  If the driver leaves it
as zero, mtd will set it to a default value of ecc_strength.

This v2 adds the line that propagates bitflip_threshold from the master to the
partitions - thanks Ivan [1].

[1] http://lists.infradead.org/pipermail/linux-mtd/2012-April/040900.html

Signed-off-by: Mike Dunn <mikedunn@newsguy.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Documentation/ABI/testing/sysfs-class-mtd
drivers/mtd/mtdcore.c
drivers/mtd/mtdpart.c
include/linux/mtd/mtd.h