Skip to content

Commit

Permalink
ath9k: Fix suspend/resume when no interface is UP
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rajkumar Manoharan authored and John W. Linville committed Jun 29, 2011
1 parent 5ee0a58 commit c31eb8e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/net/wireless/ath/ath9k/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c31eb8e

Please sign in to comment.