projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ef89ec
)
mmc: mvsdio: Enable MMC_CAP_ERASE
author
Ulf Hansson
<ulf.hansson@linaro.org>
Thu, 31 May 2018 10:23:28 +0000
(12:23 +0200)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Thu, 31 May 2018 13:02:16 +0000
(15:02 +0200)
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>
drivers/mmc/host/mvsdio.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/mvsdio.c
b/drivers/mmc/host/mvsdio.c
index
4c70829
..
e22bbff
100644
(file)
--- 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);