aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2013-04-15 11:27:25 -0400
committerChris Ball <cjb@laptop.org>2013-04-15 11:27:25 -0400
commita08b17be8b984a7c51cd5a480cd977363df353f9 (patch)
tree7bf4d23e4269b714b1aa6a86f8a7ff4730be85df
parente48fc15aa205f380b2fc6d565724a55b1efd8083 (diff)
mmc: core: fix init controller performance regression, updated patch
Add MMC_CAP2_NO_PRESCAN_POWERUP to sdhci-pci.c also, use mmc_power_off() for MMC_CAP2_NO_PRESCAN_POWERUP. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> [cjb: previously applied v1 of this patch instead of v4] Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r--drivers/mmc/core/core.c4
-rw-r--r--drivers/mmc/host/sdhci-pci.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index c1893c9c3c31..65f9ca7a56ad 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -2416,7 +2416,9 @@ void mmc_start_host(struct mmc_host *host)
2416{ 2416{
2417 host->f_init = max(freqs[0], host->f_min); 2417 host->f_init = max(freqs[0], host->f_min);
2418 host->rescan_disable = 0; 2418 host->rescan_disable = 0;
2419 if (!(host->caps2 & MMC_CAP2_NO_PRESCAN_POWERUP)) 2419 if (host->caps2 & MMC_CAP2_NO_PRESCAN_POWERUP)
2420 mmc_power_off(host);
2421 else
2420 mmc_power_up(host); 2422 mmc_power_up(host);
2421 mmc_detect_change(host, 0); 2423 mmc_detect_change(host, 0);
2422} 2424}
diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c
index c1f037266bdf..0012d3fdc999 100644
--- a/drivers/mmc/host/sdhci-pci.c
+++ b/drivers/mmc/host/sdhci-pci.c
@@ -1280,6 +1280,7 @@ static struct sdhci_pci_slot *sdhci_pci_probe_slot(
1280 1280
1281 host->mmc->pm_caps = MMC_PM_KEEP_POWER | MMC_PM_WAKE_SDIO_IRQ; 1281 host->mmc->pm_caps = MMC_PM_KEEP_POWER | MMC_PM_WAKE_SDIO_IRQ;
1282 host->mmc->slotno = slotno; 1282 host->mmc->slotno = slotno;
1283 host->mmc->caps2 |= MMC_CAP2_NO_PRESCAN_POWERUP;
1283 1284
1284 ret = sdhci_add_host(host); 1285 ret = sdhci_add_host(host);
1285 if (ret) 1286 if (ret)