Browse Source

mmc: mvsdio: Enable MMC_CAP_ERASE

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.

Cc: Damien Thebault <damien.thebault@vitec.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Damien Thebault <damien.thebault@vitec.com>
Ulf Hansson 7 years ago
parent
commit
77252da7cd
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/mmc/host/mvsdio.c

+ 2 - 0
drivers/mmc/host/mvsdio.c

@@ -757,6 +757,8 @@ static int mvsd_probe(struct platform_device *pdev)
 	if (maxfreq)
 	if (maxfreq)
 		mmc->f_max = maxfreq;
 		mmc->f_max = maxfreq;
 
 
+	mmc->caps |= MMC_CAP_ERASE;
+
 	spin_lock_init(&host->lock);
 	spin_lock_init(&host->lock);
 
 
 	host->base = devm_ioremap_resource(&pdev->dev, r);
 	host->base = devm_ioremap_resource(&pdev->dev, r);