diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2018-05-02 14:02:32 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2018-05-08 09:43:27 +0200 |
commit | 400fdb25c87431dd23194b5f6ec62ffae1b224ce (patch) | |
tree | 63e3aaf4fddca77cb4d373df1eec93d829aaa40a /drivers/mmc | |
parent | ec30f11e821f2dcf707d0c66e01e87fbe8b91a66 (diff) | |
download | op-kernel-dev-400fdb25c87431dd23194b5f6ec62ffae1b224ce.zip op-kernel-dev-400fdb25c87431dd23194b5f6ec62ffae1b224ce.tar.gz |
mmc: rtsx_usb: Enable MMC_CAP_ERASE to allow erase/discard/trim requests
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: MichaĆ Pecio <michal.pecio@gmail.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/rtsx_usb_sdmmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/rtsx_usb_sdmmc.c b/drivers/mmc/host/rtsx_usb_sdmmc.c index 560614c..9a3ff22 100644 --- a/drivers/mmc/host/rtsx_usb_sdmmc.c +++ b/drivers/mmc/host/rtsx_usb_sdmmc.c @@ -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; |