diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2018-05-31 12:23:28 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2018-05-31 15:02:16 +0200 |
commit | 77252da7cd2cd6d6eed31aaa8d69b05e271bf455 (patch) | |
tree | 756eb44a126f7622e02792df2cbcbd2e3dd730b4 /drivers/mmc/host | |
parent | mmc: mvsdio: Respect card busy time out from mmc core (diff) | |
download | linux-77252da7cd2cd6d6eed31aaa8d69b05e271bf455.tar.xz linux-77252da7cd2cd6d6eed31aaa8d69b05e271bf455.zip |
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>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r-- | drivers/mmc/host/mvsdio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/host/mvsdio.c b/drivers/mmc/host/mvsdio.c index 4c70829cffd7..e22bbff89c8d 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); |