diff options
| author | Jungseung Lee <js07.lee@samsung.com> | 2016-12-22 12:37:34 +0900 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-11 11:00:27 +0200 |
| commit | b954e779ff93146e520e32b566b82303b1602b8d (patch) | |
| tree | fa7dd5ab1fb9a335f94c2c6467cb2300c129ef06 /include/linux/mmc/card.h | |
| parent | c911c56cd35bd1d11fe36739c5ebbf39ab7d89d3 (diff) | |
BACKPORT: 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>
Diffstat (limited to 'include/linux/mmc/card.h')
| -rw-r--r-- | include/linux/mmc/card.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h index c44c8d5d3..1af9a1fda 100644 --- a/include/linux/mmc/card.h +++ b/include/linux/mmc/card.h @@ -107,6 +107,9 @@ struct mmc_ext_csd { u8 raw_trim_mult; /* 232 */ u8 raw_bkops_status; /* 246 */ u8 raw_sectors[4]; /* 212 - 4 bytes */ + u8 pre_eol_info; /* 267 */ + u8 device_life_time_est_typ_a; /* 268 */ + u8 device_life_time_est_typ_b; /* 269 */ unsigned int feature_support; #define MMC_DISCARD_FEATURE BIT(0) /* CMD38 feature */ |
