diff options
Diffstat (limited to 'drivers/mmc/core')
-rw-r--r-- | drivers/mmc/core/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 7dc0c85fdb60..d03a080fb9cd 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c | |||
@@ -2102,7 +2102,8 @@ EXPORT_SYMBOL(mmc_can_sanitize); | |||
2102 | 2102 | ||
2103 | int mmc_can_secure_erase_trim(struct mmc_card *card) | 2103 | int mmc_can_secure_erase_trim(struct mmc_card *card) |
2104 | { | 2104 | { |
2105 | if (card->ext_csd.sec_feature_support & EXT_CSD_SEC_ER_EN) | 2105 | if ((card->ext_csd.sec_feature_support & EXT_CSD_SEC_ER_EN) && |
2106 | !(card->quirks & MMC_QUIRK_SEC_ERASE_TRIM_BROKEN)) | ||
2106 | return 1; | 2107 | return 1; |
2107 | return 0; | 2108 | return 0; |
2108 | } | 2109 | } |