There is no obvious reasons to why mvsdio shouldn't be able to support erase/trim/discard operations, hence let's set MMC_CAP_ERASE for it.
Unified · Split
| @@ -757,6 +757,8 @@ static int mvsd_probe(struct platform_device *pdev) · 756 unmodified lines | |||
| 757 | if (maxfreq) | 757 | if (maxfreq) |
| 758 | mmc->f_max = maxfreq; | 758 | mmc->f_max = maxfreq; |
| 759 | 759 | ||
| 760 | mmc->caps |= MMC_CAP_ERASE; | ||
| 761 | |||
| 760 | spin_lock_init(&host->lock); | 762 | spin_lock_init(&host->lock); |
| 761 | 763 | ||
| 762 | host->base = devm_ioremap_resource(&pdev->dev, r); | 764 | host->base = devm_ioremap_resource(&pdev->dev, r); |