projects/linux·commit 77252da7

mmc: mvsdio: Enable MMC_CAP_ERASE

77252da7 · Ulf Hansson <[email protected]> · 2018-05-31 12:23:28 +02:00

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]>
Commit
77252da7cd2cd6d6eed31aaa8d69b05e271bf455
Parents
0ef89ec2

Changes

1 files changed · +2 −0

FileStatusAddDelContent
drivers/mmc/host/mvsdio.cmodified+2−0View file

drivers/mmc/host/mvsdio.c

View file
diff --git a/drivers/mmc/host/mvsdio.c b/drivers/mmc/host/mvsdio.c
index 4c70829..e22bbff 100644
--- a/drivers/mmc/host/mvsdio.c
+++ b/drivers/mmc/host/mvsdio.c
@@ -757,6 +757,8 @@ static int mvsd_probe(struct platform_device *pdev)
if (maxfreq)
mmc->f_max = maxfreq;
+ mmc->caps |= MMC_CAP_ERASE;
+
spin_lock_init(&host->lock);
host->base = devm_ioremap_resource(&pdev->dev, r);