mmc: sdhci-acpi: Set MMC_CAP_AGGRESSIVE_PM for Broxton controllers
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 12 Apr 2016 11:25:06 +0000 (14:25 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 2 May 2016 08:33:28 +0000 (10:33 +0200)
Set MMC_CAP_AGGRESSIVE_PM for Broxton host controllers.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-acpi.c

index 2a0cda50ce455c5b26fa619912dfc3ca3e5b173b..b2d70ba6caa74d1a24de0f980bcd85e4d84ac242 100644 (file)
@@ -262,8 +262,10 @@ static int sdhci_acpi_sd_probe_slot(struct platform_device *pdev,
 
        /* Platform specific code during sd probe slot goes here */
 
-       if (hid && !strcmp(hid, "80865ACA"))
+       if (hid && !strcmp(hid, "80865ACA")) {
                host->mmc_host_ops.get_cd = bxt_get_cd;
+               host->mmc->caps |= MMC_CAP_AGGRESSIVE_PM;
+       }
 
        return 0;
 }