diff options
author | Grant Grundler <grundler@google.com> | 2011-03-18 15:56:57 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-04 22:28:56 -0700 |
commit | 6b5a5a3eb77ea69382da9d2a64d74107e49cedaa (patch) | |
tree | add57c7a94f1a5909cd1f1d687c211928764563e /drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c | |
parent | 6f27b08d5b781608e97652ae5b83c271c9d177bc (diff) |
STAGING: brcm80211 v2 keep power on in suspend state
Keep WIFI power on during suspend.
Consumes 10s of milliwatts but avoids having to reload firmware
on resume. Tested on tegra2_seaboard.
Signed-off-by: Venkat Rao <vrao@broadcom.com>
Tested-by: Grant Grundler <grundler@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c')
-rw-r--r-- | drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c b/drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c index 65313fa0cf4..0c89e854c4c 100644 --- a/drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c +++ b/drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c @@ -68,6 +68,13 @@ DHD_PM_RESUME_WAIT_INIT(sdioh_request_buffer_wait); int sdioh_sdmmc_card_regread(sdioh_info_t *sd, int func, u32 regaddr, int regsize, u32 *data); +void sdioh_sdio_set_host_pm_flags(int flag) +{ + if (sdio_set_host_pm_flags(gInstance->func[1], flag)) + printk(KERN_ERR "%s: Failed to set pm_flags 0x%08x\n",\ + __func__, (unsigned int)flag); +} + static int sdioh_sdmmc_card_enablefuncs(sdioh_info_t *sd) { int err_ret; |