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 | 757 | if (maxfreq) |
| 758 | 758 | mmc->f_max = maxfreq; |
| 759 | 759 | |
| 760 | + mmc->caps |= MMC_CAP_ERASE; | |
| 761 | + | |
| 760 | 762 | spin_lock_init(&host->lock); |
| 761 | 763 | |
| 762 | 764 | host->base = devm_ioremap_resource(&pdev->dev, r); |