Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3df01a93 authored by Chen-Yu Tsai's avatar Chen-Yu Tsai Committed by Ulf Hansson
Browse files

mmc: sunxi: Declare ERASE capability



Declare ERASE capability so we can use filesystems with the discard
option and the fstrim tool.

Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
Acked-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 066173b6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)