diff options
author | Daniel Drake <dsd@laptop.org> | 2010-11-04 18:20:39 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2010-11-07 16:45:11 -0500 |
commit | 5f619704d18b93869d045abc49e09cdba109b04b (patch) | |
tree | 50d523926d50bac76448fea6ab25c1e118537e06 /drivers/mmc/host/sdhci.c | |
parent | 14d4031d21d8a63ad84e5ab9198d0503efabc780 (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.c | 10 |
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 | ||
1682 | EXPORT_SYMBOL_GPL(sdhci_resume_host); | 1682 | EXPORT_SYMBOL_GPL(sdhci_resume_host); |
1683 | 1683 | ||
1684 | void 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 | |||
1692 | EXPORT_SYMBOL_GPL(sdhci_enable_irq_wakeups); | ||
1693 | |||
1684 | #endif /* CONFIG_PM */ | 1694 | #endif /* CONFIG_PM */ |
1685 | 1695 | ||
1686 | /*****************************************************************************\ | 1696 | /*****************************************************************************\ |