|
@@ -2604,6 +2604,12 @@ static int dw_mci_init_slot(struct dw_mci *host, unsigned int id)
|
|
|
if (host->pdata->caps)
|
|
|
mmc->caps = host->pdata->caps;
|
|
|
|
|
|
+ /*
|
|
|
+ * Support MMC_CAP_ERASE by default.
|
|
|
+ * It needs to use trim/discard/erase commands.
|
|
|
+ */
|
|
|
+ mmc->caps |= MMC_CAP_ERASE;
|
|
|
+
|
|
|
if (host->pdata->pm_caps)
|
|
|
mmc->pm_caps = host->pdata->pm_caps;
|
|
|
|