diff options
author | Sujith Manoharan <Sujith.Manoharan@atheros.com> | 2010-12-01 07:00:27 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-08 20:23:47 (GMT) |
commit | f933ebed7888a9a7d73ebeeb6bcbb3f710c423b4 (patch) | |
tree | 19f8c2e29e986303c42fe83ce8724fcd444a8618 /drivers/net/wireless/ath/ath9k/htc_drv_init.c | |
parent | b93996cf67d47597efad03d5e5431c7b8b11e688 (diff) | |
download | linux-fsl-qoriq-f933ebed7888a9a7d73ebeeb6bcbb3f710c423b4.tar.xz |
ath9k_htc: Fix suspend/resume
The HW has to be set to FULLSLEEP mode during suspend,
when no interface has been brought up. Not doing this would
break resume, as the chip won't be powered up at all.
Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/htc_drv_init.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_init.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_init.c b/drivers/net/wireless/ath/ath9k/htc_drv_init.c index 7c8a38d..8776f49 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c @@ -891,6 +891,12 @@ void ath9k_htc_disconnect_device(struct htc_target *htc_handle, bool hotunplug) } #ifdef CONFIG_PM + +void ath9k_htc_suspend(struct htc_target *htc_handle) +{ + ath9k_htc_setpower(htc_handle->drv_priv, ATH9K_PM_FULL_SLEEP); +} + int ath9k_htc_resume(struct htc_target *htc_handle) { int ret; |