From: Harish Jenny K N <harish_kandiga@xxxxxxxxxx> Enable MMC_CAP_ERASE capability in the driver to allow erase/discard/trim requests. Suggested-by: Andrew Gabbasov <andrew_gabbasov@xxxxxxxxxx> Signed-off-by: Harish Jenny K N <harish_kandiga@xxxxxxxxxx> [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@xxxxxxxxxxxxxx> --- 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