diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2012-03-13 05:19:13 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-03-27 12:20:07 -0400 |
commit | 83bb24aaa4af2ec7c127cc2a5fa7ca9f64cdd13d (patch) | |
tree | fa7d97909c26a8906c6c97947a0f7ea25f3f2288 /drivers/mmc/core | |
parent | 2cecdf002300bca86ce83b17a60f907d5a4ce7dc (diff) |
mmc: core: add high-capacity erase size capability flag
Let drivers specify the use of high-capacity erase size.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/core')
-rw-r--r-- | drivers/mmc/core/mmc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index d7d8a93c3503..02914d609a91 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c | |||
@@ -952,7 +952,8 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr, | |||
952 | * If enhanced_area_en is TRUE, host needs to enable ERASE_GRP_DEF | 952 | * If enhanced_area_en is TRUE, host needs to enable ERASE_GRP_DEF |
953 | * bit. This bit will be lost every time after a reset or power off. | 953 | * bit. This bit will be lost every time after a reset or power off. |
954 | */ | 954 | */ |
955 | if (card->ext_csd.enhanced_area_en) { | 955 | if (card->ext_csd.enhanced_area_en || |
956 | (card->ext_csd.rev >= 3 && (host->caps2 & MMC_CAP2_HC_ERASE_SZ))) { | ||
956 | err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, | 957 | err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, |
957 | EXT_CSD_ERASE_GROUP_DEF, 1, | 958 | EXT_CSD_ERASE_GROUP_DEF, 1, |
958 | card->ext_csd.generic_cmd6_time); | 959 | card->ext_csd.generic_cmd6_time); |