Skip to content

Commit 77252da

Browse files
committed
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 <[email protected]> Signed-off-by: Ulf Hansson <[email protected]> Tested-by: Damien Thebault <[email protected]>
1 parent 0ef89ec commit 77252da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/mmc/host/mvsdio.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,8 @@ static int mvsd_probe(struct platform_device *pdev)
757757
if (maxfreq)
758758
mmc->f_max = maxfreq;
759759

760+
mmc->caps |= MMC_CAP_ERASE;
761+
760762
spin_lock_init(&host->lock);
761763

762764
host->base = devm_ioremap_resource(&pdev->dev, r);

0 commit comments

Comments
 (0)