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¹. ¹ 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> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
Showing
- Documentation/ABI/testing/sysfs-class-mtd 36 additions, 0 deletionsDocumentation/ABI/testing/sysfs-class-mtd
- drivers/mtd/mtdcore.c 33 additions, 0 deletionsdrivers/mtd/mtdcore.c
- drivers/mtd/mtdpart.c 2 additions, 0 deletionsdrivers/mtd/mtdpart.c
- include/linux/mtd/mtd.h 9 additions, 0 deletionsinclude/linux/mtd/mtd.h
Loading
Please register or sign in to comment