From: Rajkumar Manoharan Date: Tue, 28 Jun 2011 12:51:19 +0000 (+0530) Subject: ath9k: Fix suspend/resume when no interface is UP X-Git-Tag: v2.6.39.3~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0976b5a625477c9782a0cb10eec6bff3a923d452;p=thirdparty%2Fkernel%2Fstable.git ath9k: Fix suspend/resume when no interface is UP commit c31eb8e926835582cd186b33a7a864880a4c0c79 upstream. When no interface has been brought up, the chip's power state continued as AWAKE. So during resume, the chip never been powered up. Signed-off-by: Rajkumar Manoharan Signed-off-by: John W. Linville Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/net/wireless/ath/ath9k/pci.c b/drivers/net/wireless/ath/ath9k/pci.c index 9c65459be1005..e137212bada24 100644 --- a/drivers/net/wireless/ath/ath9k/pci.c +++ b/drivers/net/wireless/ath/ath9k/pci.c @@ -278,6 +278,12 @@ static int ath_pci_suspend(struct device *device) ath9k_hw_set_gpio(sc->sc_ah, sc->sc_ah->led_pin, 1); + /* The device has to be moved to FULLSLEEP forcibly. + * Otherwise the chip never moved to full sleep, + * when no interface is up. + */ + ath9k_hw_setpower(sc->sc_ah, ATH9K_PM_FULL_SLEEP); + return 0; }