diff options
author | Rahul Bansal <rbansal@nvidia.com> | 2010-12-13 16:18:12 +0530 |
---|---|---|
committer | Bharat Nihalani <bnihalani@nvidia.com> | 2010-12-28 23:59:15 -0800 |
commit | 3dba2bed8216623e281409788de8c7c322959421 (patch) | |
tree | d4246a27390bd860cbdb0d94fdeef26db3d6e2f5 /drivers/mmc/host | |
parent | f52b89b7405466ddefb65fa9337f535612e8281b (diff) |
[arm/tegra] Support for Wake-On-Wireless Event.tegra-10.11.1.1tegra-10.11.1
Support for device wakeup on receiving in-band
SDIO-WIFI interrupt for incoming wifi pakcket.
Bug: 767438
Change-Id: Ibc1f95cc38eacef84e528e1beca6a4fdbdc36338
Reviewed-on: http://git-master/r/12702
Reviewed-by: Rahul Bansal <rbansal@nvidia.com>
Tested-by: Rahul Bansal <rbansal@nvidia.com>
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/mmc/host')
-rwxr-xr-x[-rw-r--r--] | drivers/mmc/host/sdhci-tegra.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index b6308d5a9572..a16aa2b53417 100644..100755 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c @@ -283,6 +283,10 @@ static int tegra_sdhci_suspend(struct platform_device *pdev, pm_message_t state) u16 clk; unsigned int clock = 100000; + if (device_may_wakeup(&pdev->dev)) { + enable_irq_wake(host->sdhci->irq); + } + /* save interrupt status before suspending */ host->sdhci_ints = sdhci_readl(host->sdhci, SDHCI_INT_ENABLE); @@ -320,6 +324,10 @@ static int tegra_sdhci_resume(struct platform_device *pdev) if (host->card_always_on && is_card_sdio(host->sdhci->mmc->card)) { int ret = 0; + if (device_may_wakeup(&pdev->dev)) { + disable_irq_wake(host->sdhci->irq); + } + /* soft reset SD host controller and enable interrupts */ ret = tegra_sdhci_restore(host->sdhci); if (ret) { |