diff options
author | Kyungmin Park <kyungmin.park@samsung.com> | 2011-10-18 04:34:04 +0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-10-27 00:32:27 +0400 |
commit | b3bf915308ca2b50f3beec6cc824083870f0f4b5 (patch) | |
tree | 955978242b333e1388358b4b50b5f8f4a5abca04 /include/linux/mmc/card.h | |
parent | d9ddd62943ee07a75d0428ffcf52f1a747a28c39 (diff) | |
download | linux-b3bf915308ca2b50f3beec6cc824083870f0f4b5.tar.xz |
mmc: core: new discard feature support at eMMC v4.5
MMC v4.5 supports the DISCARD feature (CMD38). It's different from
trim and there's no check bit. Currently it's only supported at v4.5.
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.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 711c3f8bfabd..551378508784 100644 --- a/include/linux/mmc/card.h +++ b/include/linux/mmc/card.h @@ -80,6 +80,9 @@ struct mmc_ext_csd { u8 raw_sec_feature_support;/* 231 */ u8 raw_trim_mult; /* 232 */ u8 raw_sectors[4]; /* 212 - 4 bytes */ + + unsigned int feature_support; +#define MMC_DISCARD_FEATURE BIT(0) /* CMD38 feature */ }; struct sd_scr { |