mmc: rtsx_pci: Enable MMC_CAP_ERASE to allow erase/discard/trim requests
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Jul 2016 23:37:31 +0000 (01:37 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 29 Jul 2016 09:29:05 +0000 (11:29 +0200)
Cc: Micky Ching <micky_ching@realsil.com.cn>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Mauro Santos <registo.mailling@gmail.com>
drivers/mmc/host/rtsx_pci_sdmmc.c

index 6158b96cdd47115a42253eeeb83bd3fc053d86c1..40f957e0960f7150bd2e83a8ddefcf0fc3b69cea 100644 (file)
@@ -1360,7 +1360,7 @@ static void realtek_init_host(struct realtek_pci_sdmmc *host)
        mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34 | MMC_VDD_165_195;
        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_SDR12 | MMC_CAP_UHS_SDR25 | MMC_CAP_ERASE;
        mmc->caps2 = MMC_CAP2_NO_PRESCAN_POWERUP | MMC_CAP2_FULL_PWR_CYCLE;
        mmc->max_current_330 = 400;
        mmc->max_current_180 = 800;