summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2010-12-07 15:13:19 -0800
committerJohn W. Linville <linville@tuxdriver.com>2010-12-13 15:23:27 -0500
commitc2731b814e2aaaa40072ee761b7373c052d86e37 (patch)
treea04540d697998e36bb423b50149fa4b4587d5c3b /include
parentb7613370db5ba66ad81e41cd3a5417fde4d5e03c (diff)
downloadblackbird-op-linux-c2731b814e2aaaa40072ee761b7373c052d86e37.tar.gz
blackbird-op-linux-c2731b814e2aaaa40072ee761b7373c052d86e37.zip
ath9k: Fix power save count imbalance on ath_radio_enable()
Upon a failure we never call ath9k_ps_restore() on ath_radio_enable(), this will throw off the sc->ps_usecount. When the sc->ps_usecount is > 0 we never put the chip to full sleep. This drains battery, and will also make the chip fail upon resume with: ath: Starting driver with initial channel: 5745 MHz ath: timeout (100000 us) on reg 0x7000: 0xdeadbeef & 0x00000003 != 0x00000000 This would make the chip useless upon resume. I cannot prove this can happen but in theory it is so best to avoid this race completely and not have users complain about a broken device after resume. Cc: stable@kernel.org Cc: Paul Stewart <pstew@google.com> Cc: Amod Bodas <amod.bodas@atheros.com> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud