kernel-fxtec-pro1x/drivers/net/wireless
Rajkumar Manoharan c7c1806098 ath9k: Fix power save usage count imbalance on deinit
While unloading the driver, the ps_usecount is incremented
before configuring gpio registers in deinit_device.
But it is failed to restore the ps_usecount after that.
The problem is that the chip is forcibly moved to FULL SLEEP
by radio_disable when mac80211 is reporting as idle
though ps_usecount is not zero.

This patch retores ps_usecount properly and ensures that
the chip is always moved to full sleep only if ps usage
count is zero which also helps in debugging deadbeef on
multivif case. And also fixes the following warning.

ath: DMA failed to stop in 10 ms AR_CR=0xdeadbeef AR_DIAG_SW=0xdeadbeef
ath: Could not stop RX, we could be confusing the DMA engine when we
start RX up
------------[ cut here ]------------
WARNING: at drivers/net/wireless/ath/ath9k/recv.c:536
ath_stoprecv+0xf4/0x100 [ath9k]()

Cc: stable@kernel.org
Cc: Paul Stewart <pstew@google.com>
Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2011-01-28 15:27:20 -05:00
..
ath ath9k: Fix power save usage count imbalance on deinit 2011-01-28 15:27:20 -05:00
b43
b43legacy
hostap hostap_cs: fix sleeping function called from invalid context 2011-01-10 15:40:53 -05:00
ipw2x00 ipw2200: Check for -1 INTA in tasklet too. 2011-01-10 15:40:53 -05:00
iwlwifi iwlwifi: don't read sku information from EEPROM for 4965 2011-01-21 15:05:57 -05:00
iwmc3200wifi iwmc3200wifi: Return proper error for iwm_if_alloc 2011-01-13 15:46:44 -05:00
libertas libertas: down_interruptible() can return -EINTR, not EINTR 2011-01-04 14:46:56 -05:00
libertas_tf
orinoco
p54 p54: fix sequence no. accounting off-by-one error 2011-01-10 15:40:53 -05:00
prism54
rt2x00 rt2x00: add device id for windy31 usb device 2011-01-25 16:28:56 -05:00
rtl818x
rtlwifi rtlwifi: Fix firmware upload errors 2011-01-27 16:32:19 -05:00
wl12xx
wl1251
zd1211rw Merge branch 'for-2.6.38' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq 2011-01-07 16:58:04 -08:00
adm8211.c
adm8211.h
airo.c
airo.h
airo_cs.c
at76c50x-usb.c
at76c50x-usb.h
atmel.c
atmel.h
atmel_cs.c
atmel_pci.c
Kconfig
mac80211_hwsim.c
Makefile
mwl8k.c
ray_cs.c
ray_cs.h
rayctl.h
rndis_wlan.c
wl3501.h
wl3501_cs.c
zd1201.c
zd1201.h