linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mmc: renesas_sdhi_internal_dmac: Add MMC_CAP_ERASE to Gen3 SoCs
@ 2019-11-12 13:48 Eugeniu Rosca
  2019-11-12 20:49 ` Wolfram Sang
  0 siblings, 1 reply; 13+ messages in thread
From: Eugeniu Rosca @ 2019-11-12 13:48 UTC (permalink / raw)
  To: Wolfram Sang, Yoshihiro Shimoda, Niklas Söderlund, Ulf Hansson
  Cc: Geert Uytterhoeven, Simon Horman, linux-mmc, linux-kernel,
	linux-renesas-soc, Eugeniu Rosca, Eugeniu Rosca,
	Harish Jenny K N, Andrew Gabbasov

From: Harish Jenny K N <harish_kandiga@mentor.com>

Enable MMC_CAP_ERASE capability in the driver to allow
erase/discard/trim requests.

Suggested-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
Signed-off-by: Harish Jenny K N <harish_kandiga@mentor.com>
[erosca: Forward-port and test on v5.4-rc7 using H3ULCB-KF:
         "blkdiscard /dev/mmcblk0" passes with this patch applied
         and complains otherwise:
	 "BLKDISCARD ioctl failed: Operation not supported"]
Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
---
 drivers/mmc/host/renesas_sdhi_internal_dmac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/host/renesas_sdhi_internal_dmac.c b/drivers/mmc/host/renesas_sdhi_internal_dmac.c
index a66f8d6d61d1..61fcbf51c947 100644
--- a/drivers/mmc/host/renesas_sdhi_internal_dmac.c
+++ b/drivers/mmc/host/renesas_sdhi_internal_dmac.c
@@ -105,7 +105,7 @@ static const struct renesas_sdhi_of_data of_rcar_gen3_compatible = {
 	.tmio_flags	= TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_CLK_ACTUAL |
 			  TMIO_MMC_HAVE_CBSY | TMIO_MMC_MIN_RCAR2,
 	.capabilities	= MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ |
-			  MMC_CAP_CMD23,
+			  MMC_CAP_ERASE | MMC_CAP_CMD23,
 	.capabilities2	= MMC_CAP2_NO_WRITE_PROTECT | MMC_CAP2_MERGE_CAPABLE,
 	.bus_shift	= 2,
 	.scc_offset	= 0x1000,
-- 
2.24.0

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

end of thread, other threads:[~2019-11-15 13:54 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-12 13:48 [PATCH] mmc: renesas_sdhi_internal_dmac: Add MMC_CAP_ERASE to Gen3 SoCs Eugeniu Rosca
2019-11-12 20:49 ` Wolfram Sang
2019-11-14 10:56   ` Ulf Hansson
2019-11-14 11:37     ` Eugeniu Rosca
2019-11-14 12:48       ` Ulf Hansson
2019-11-14 20:15         ` Wolfram Sang
2019-11-15  9:19           ` Ulf Hansson
2019-11-15 10:12             ` Wolfram Sang
2019-11-15 10:38               ` Ulf Hansson
2019-11-14 22:07         ` Eugeniu Rosca
2019-11-15  9:27           ` Ulf Hansson
2019-11-15 12:51             ` Eugeniu Rosca
2019-11-15 13:54               ` Eugeniu Rosca

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).