diff options
author | Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com> | 2011-09-14 05:39:40 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-16 16:45:35 -0400 |
commit | c5d2593bad0d3440ce3b464d9e3c514d364820f8 (patch) | |
tree | c06bd750ebbe74fe4ae9502e476e6265502c29be /drivers | |
parent | 79ac9b3033eef5dd1144da035cf18b00e35ddf48 (diff) |
ath9k: Fix PS wrappers and enabling LED
in ath_pci_resume it seems we are not enabling LED properly, in addition
we have a PS wrapper fix for this
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/pci.c b/drivers/net/wireless/ath/ath9k/pci.c index bda2233126d0..d67d6eee3954 100644 --- a/drivers/net/wireless/ath/ath9k/pci.c +++ b/drivers/net/wireless/ath/ath9k/pci.c | |||
@@ -333,16 +333,16 @@ static int ath_pci_resume(struct device *device) | |||
333 | if ((val & 0x0000ff00) != 0) | 333 | if ((val & 0x0000ff00) != 0) |
334 | pci_write_config_dword(pdev, 0x40, val & 0xffff00ff); | 334 | pci_write_config_dword(pdev, 0x40, val & 0xffff00ff); |
335 | 335 | ||
336 | ath9k_ps_wakeup(sc); | ||
336 | /* Enable LED */ | 337 | /* Enable LED */ |
337 | ath9k_hw_cfg_output(sc->sc_ah, sc->sc_ah->led_pin, | 338 | ath9k_hw_cfg_output(sc->sc_ah, sc->sc_ah->led_pin, |
338 | AR_GPIO_OUTPUT_MUX_AS_OUTPUT); | 339 | AR_GPIO_OUTPUT_MUX_AS_OUTPUT); |
339 | ath9k_hw_set_gpio(sc->sc_ah, sc->sc_ah->led_pin, 1); | 340 | ath9k_hw_set_gpio(sc->sc_ah, sc->sc_ah->led_pin, 0); |
340 | 341 | ||
341 | /* | 342 | /* |
342 | * Reset key cache to sane defaults (all entries cleared) instead of | 343 | * Reset key cache to sane defaults (all entries cleared) instead of |
343 | * semi-random values after suspend/resume. | 344 | * semi-random values after suspend/resume. |
344 | */ | 345 | */ |
345 | ath9k_ps_wakeup(sc); | ||
346 | ath9k_cmn_init_crypto(sc->sc_ah); | 346 | ath9k_cmn_init_crypto(sc->sc_ah); |
347 | ath9k_ps_restore(sc); | 347 | ath9k_ps_restore(sc); |
348 | 348 | ||