mmc: sunxi: Declare ERASE capability
Declare ERASE capability so we can use filesystems with the discard option and the fstrim tool. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Acked-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
066173b643
commit
3df01a9313
|
@ -990,7 +990,8 @@ static int sunxi_mmc_probe(struct platform_device *pdev)
|
|||
/* 400kHz ~ 50MHz */
|
||||
mmc->f_min = 400000;
|
||||
mmc->f_max = 50000000;
|
||||
mmc->caps |= MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED;
|
||||
mmc->caps |= MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED |
|
||||
MMC_CAP_ERASE;
|
||||
|
||||
ret = mmc_of_parse(mmc);
|
||||
if (ret)
|
||||
|
|
Loading…
Reference in New Issue