mmc: rtsx_usb: Enable MMC_CAP_ERASE to allow erase/discard/trim requests
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 2 May 2018 12:02:32 +0000 (14:02 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 8 May 2018 07:43:27 +0000 (09:43 +0200)
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: MichaƂ Pecio <michal.pecio@gmail.com>
drivers/mmc/host/rtsx_usb_sdmmc.c

index 560614c..9a3ff22 100644 (file)
@@ -1320,7 +1320,7 @@ static void rtsx_usb_init_host(struct rtsx_usb_sdmmc *host)
        mmc->caps = MMC_CAP_4_BIT_DATA | MMC_CAP_SD_HIGHSPEED |
                MMC_CAP_MMC_HIGHSPEED | MMC_CAP_BUS_WIDTH_TEST |
                MMC_CAP_UHS_SDR12 | MMC_CAP_UHS_SDR25 | MMC_CAP_UHS_SDR50 |
-               MMC_CAP_NEEDS_POLL;
+               MMC_CAP_NEEDS_POLL | MMC_CAP_ERASE;
        mmc->caps2 = MMC_CAP2_NO_PRESCAN_POWERUP | MMC_CAP2_FULL_PWR_CYCLE |
                MMC_CAP2_NO_SDIO;