aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci.c
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2010-11-04 18:20:39 -0400
committerChris Ball <cjb@laptop.org>2010-11-07 16:45:11 -0500
commit5f619704d18b93869d045abc49e09cdba109b04b (patch)
tree50d523926d50bac76448fea6ab25c1e118537e06 /drivers/mmc/host/sdhci.c
parent14d4031d21d8a63ad84e5ab9198d0503efabc780 (diff)
mmc: sdhci: Properly enable SDIO IRQ wakeups
A little more work was needed for SDIO IRQ wakeups to be functional. Wake-on-WLAN on the SD WiFi adapter in the XO-1.5 laptop is now working. Signed-off-by: Daniel Drake <dsd@laptop.org> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/sdhci.c')
-rw-r--r--drivers/mmc/host/sdhci.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 782c0ee3c925..154cbf83c1ab 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -1681,6 +1681,16 @@ int sdhci_resume_host(struct sdhci_host *host)
1681 1681
1682EXPORT_SYMBOL_GPL(sdhci_resume_host); 1682EXPORT_SYMBOL_GPL(sdhci_resume_host);
1683 1683
1684void sdhci_enable_irq_wakeups(struct sdhci_host *host)
1685{
1686 u8 val;
1687 val = sdhci_readb(host, SDHCI_WAKE_UP_CONTROL);
1688 val |= SDHCI_WAKE_ON_INT;
1689 sdhci_writeb(host, val, SDHCI_WAKE_UP_CONTROL);
1690}
1691
1692EXPORT_SYMBOL_GPL(sdhci_enable_irq_wakeups);
1693
1684#endif /* CONFIG_PM */ 1694#endif /* CONFIG_PM */
1685 1695
1686/*****************************************************************************\ 1696/*****************************************************************************\