aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOhad Ben-Cohen <ohad@wizery.com>2010-10-02 07:54:05 -0400
committerChris Ball <cjb@laptop.org>2010-10-23 09:11:17 -0400
commit9b966aae6419f7d75a87114c4d82bfb8f8699132 (patch)
tree9b1f422df8442550b209c477cb3d97337cb3aaf6
parent1978fda85dfdb53623dddb4ec126163a61ab3933 (diff)
mmc: sdio: fully reconfigure oldcard on resume
On resume, let mmc_sdio_init_card go all the way, instead of skipping the reconfiguration of the card's speed and width. This is needed to ensure cards wake up with their clock reconfigured (otherwise it's kept low). This patch also removes the explicit bus width reconfiguration on resume, since now this is part of mmc_sdio_init_card. Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com> Tested-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r--drivers/mmc/core/sdio.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c
index f332c52968b7..3be1571e4a51 100644
--- a/drivers/mmc/core/sdio.c
+++ b/drivers/mmc/core/sdio.c
@@ -456,7 +456,6 @@ static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr,
456 return -ENOENT; 456 return -ENOENT;
457 457
458 card = oldcard; 458 card = oldcard;
459 return 0;
460 } 459 }
461 460
462 if (card->type == MMC_TYPE_SD_COMBO) { 461 if (card->type == MMC_TYPE_SD_COMBO) {
@@ -614,14 +613,6 @@ static int mmc_sdio_resume(struct mmc_host *host)
614 mmc_claim_host(host); 613 mmc_claim_host(host);
615 err = mmc_sdio_init_card(host, host->ocr, host->card, 614 err = mmc_sdio_init_card(host, host->ocr, host->card,
616 (host->pm_flags & MMC_PM_KEEP_POWER)); 615 (host->pm_flags & MMC_PM_KEEP_POWER));
617 if (!err) {
618 /* We may have switched to 1-bit mode during suspend. */
619 err = sdio_enable_4bit_bus(host->card);
620 if (err > 0) {
621 mmc_set_bus_width(host, MMC_BUS_WIDTH_4);
622 err = 0;
623 }
624 }
625 if (!err && host->sdio_irqs) 616 if (!err && host->sdio_irqs)
626 mmc_signal_sdio_irq(host); 617 mmc_signal_sdio_irq(host);
627 mmc_release_host(host); 618 mmc_release_host(host);