aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorOhad Ben-Cohen <ohad@wizery.com>2011-04-05 10:43:21 -0400
committerChris Ball <cjb@laptop.org>2011-05-24 20:59:47 -0400
commit6b93d01fe5971951911a070f51f412d50e9536dc (patch)
tree0e0221f3af9f954bd60e469f94810730899ee374 /include/linux/mmc
parenta5e9425d2010978c5f85986cc70a9fa0c0d5b912 (diff)
mmc: do not switch to 1-bit mode if not required
6b5eda36 followed SDIO spec part E1 section 8, which states that in case SDIO interrupts are being used to wake up a suspended host, then it is required to switch to 1-bit mode before stopping the clock. Before switching to 1-bit mode (or back to 4-bit mode on resume), make sure that SDIO interrupts are really being used to wake the host. This is helpful for devices which have an external irq line (e.g. wl1271), and do not use SDIO interrupts to wake up the host. In this case, switching to 1-bit mode (and back to 4-bit mode on resume) is not necessary. Reported-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r--include/linux/mmc/host.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h
index 8ad3a9c6f495..0fffa5cdc183 100644
--- a/include/linux/mmc/host.h
+++ b/include/linux/mmc/host.h
@@ -325,5 +325,9 @@ static inline int mmc_card_keep_power(struct mmc_host *host)
325 return host->pm_flags & MMC_PM_KEEP_POWER; 325 return host->pm_flags & MMC_PM_KEEP_POWER;
326} 326}
327 327
328static inline int mmc_card_wake_sdio_irq(struct mmc_host *host)
329{
330 return host->pm_flags & MMC_PM_WAKE_SDIO_IRQ;
331}
328#endif 332#endif
329 333