All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc: sunxi: Declare ERASE capability
@ 2014-08-20 13:39 ` Chen-Yu Tsai
  0 siblings, 0 replies; 12+ messages in thread
From: Chen-Yu Tsai @ 2014-08-20 13:39 UTC (permalink / raw)
  To: Chris Ball, Ulf Hansson, Maxime Ripard
  Cc: david.lanzendoerfer, Hans de Goede, Chen-Yu Tsai, linux-mmc,
	linux-arm-kernel

Declare ERASE capability so we can use filesystems with the discard
option and the fstrim tool.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
 drivers/mmc/host/sunxi-mmc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/mmc/host/sunxi-mmc.c b/drivers/mmc/host/sunxi-mmc.c
index 024f67c..7bf5c1c 100644
--- a/drivers/mmc/host/sunxi-mmc.c
+++ b/drivers/mmc/host/sunxi-mmc.c
@@ -990,7 +990,8 @@ static int sunxi_mmc_probe(struct platform_device *pdev)
 	/* 400kHz ~ 50MHz */
 	mmc->f_min		=   400000;
 	mmc->f_max		= 50000000;
-	mmc->caps	       |= MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED;
+	mmc->caps	       |= MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED |
+				  MMC_CAP_ERASE;
 
 	ret = mmc_of_parse(mmc);
 	if (ret)
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-08-29 23:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-20 13:39 [PATCH] mmc: sunxi: Declare ERASE capability Chen-Yu Tsai
2014-08-20 13:39 ` Chen-Yu Tsai
2014-08-20 14:10 ` David Lanzendörfer
2014-08-20 14:10   ` David Lanzendörfer
2014-08-20 14:20   ` Ulf Hansson
2014-08-20 14:20     ` Ulf Hansson
2014-08-29 23:16     ` David Lanzendörfer
2014-08-29 23:16       ` David Lanzendörfer
2014-08-23 14:11 ` Hans de Goede
2014-08-23 14:11   ` Hans de Goede
2014-08-29 11:10 ` Ulf Hansson
2014-08-29 11:10   ` Ulf Hansson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.