mmc: core: Export device lifetime information through sysfs
authorJungseung Lee <js07.lee@samsung.com>
Thu, 22 Dec 2016 03:37:34 +0000 (12:37 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Feb 2017 12:19:52 +0000 (13:19 +0100)
commit46bc5c408e4e325efbfff26609c76099979180a7
treee9301cd487bba765e3db01d8683ebcda3f5b1465
parentb1c95170f97ef19ff63a6da1eb2c70899186aecc
mmc: core: Export device lifetime information through sysfs

In the eMMC 5.0 version of the spec, several EXT_CSD fields about
device lifetime are added.

 - Two types of estimated indications reflected by averaged wear out of memory
 - An indication reflected by average reserved blocks

Export the information through sysfs.

Signed-off-by: Jungseung Lee <js07.lee@samsung.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c
include/linux/mmc/card.h
include/linux/mmc/mmc.h