ARM: ux500: Enable support for discard for MMC/SD
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 23 May 2013 13:13:48 +0000 (15:13 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 27 May 2013 12:06:50 +0000 (14:06 +0200)
By enabling MMC_CAP_ERASE for the SD/MMC devices the mmc block
layer will now act on DISCARD requests.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-ux500/board-mop500-sdi.c

index 9bb3ca5452b917a8f2e449aea06ee5d136146e7b..3c07f557914f833aafa8b4994eb6d7628945a2cd 100644 (file)
@@ -55,7 +55,8 @@ struct mmci_platform_data mop500_sdi0_data = {
        .f_max          = 100000000,
        .capabilities   = MMC_CAP_4_BIT_DATA |
                                MMC_CAP_SD_HIGHSPEED |
-                               MMC_CAP_MMC_HIGHSPEED,
+                               MMC_CAP_MMC_HIGHSPEED |
+                               MMC_CAP_ERASE,
        .gpio_wp        = -1,
        .sigdir         = MCI_ST_FBCLKEN |
                                MCI_ST_CMDDIREN |
@@ -146,6 +147,7 @@ struct mmci_platform_data mop500_sdi2_data = {
        .capabilities   = MMC_CAP_4_BIT_DATA |
                                MMC_CAP_8_BIT_DATA |
                                MMC_CAP_MMC_HIGHSPEED |
+                               MMC_CAP_ERASE |
                                MMC_CAP_CMD23,
        .gpio_cd        = -1,
        .gpio_wp        = -1,
@@ -185,6 +187,7 @@ struct mmci_platform_data mop500_sdi4_data = {
        .capabilities   = MMC_CAP_4_BIT_DATA |
                                MMC_CAP_8_BIT_DATA |
                                MMC_CAP_MMC_HIGHSPEED |
+                               MMC_CAP_ERASE |
                                MMC_CAP_CMD23,
        .gpio_cd        = -1,
        .gpio_wp        = -1,
This page took 0.025006 seconds and 5 git commands to generate.