Skip to content

Commit c31eb8e

Browse files
Rajkumar Manoharanlinvjw
authored andcommitted
ath9k: Fix suspend/resume when no interface is UP
When no interface has been brought up, the chip's power state continued as AWAKE. So during resume, the chip never been powered up. Cc: stable@kernel.org Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 5ee0a58 commit c31eb8e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • drivers/net/wireless/ath/ath9k

‎drivers/net/wireless/ath/ath9k/pci.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,12 @@ static int ath_pci_suspend(struct device *device)
278278

279279
ath9k_hw_set_gpio(sc->sc_ah, sc->sc_ah->led_pin, 1);
280280

281+
/* The device has to be moved to FULLSLEEP forcibly.
282+
* Otherwise the chip never moved to full sleep,
283+
* when no interface is up.
284+
*/
285+
ath9k_hw_setpower(sc->sc_ah, ATH9K_PM_FULL_SLEEP);
286+
281287
return 0;
282288
}
283289

0 commit comments

Comments
 (0)