linux/drivers/net/wireless/ath/ath9k
Sujith Manoharan ea510e4bdd ath9k: Cleanup MCI init/deinit routines
This patch simplifies the buffer allocation functions
for MCI and removes unneeded memset calls. Also, a couple
of unused variables are removed and a memory leak in DMA
allocation is fixed.

[ 1263.788267] WARNING: at /home/sujith/dev/wireless-testing/lib/dma-debug.c:875 check_unmap+0x173/0x7e0()
[ 1263.788273] ath9k 0000:06:00.0: DMA-API: device driver frees DMA memory with different size
               [device address=0x0000000071908000] [map size=512 bytes] [unmap size=256 bytes]
[ 1263.788345] Pid: 774, comm: rmmod Tainted: G        W  O 3.3.0-rc3-wl #18
[ 1263.788348] Call Trace:
[ 1263.788355]  [<ffffffff8105110f>] warn_slowpath_common+0x7f/0xc0
[ 1263.788359]  [<ffffffff81051206>] warn_slowpath_fmt+0x46/0x50
[ 1263.788363]  [<ffffffff8125a713>] check_unmap+0x173/0x7e0
[ 1263.788368]  [<ffffffff8123fc22>] ? prio_tree_left+0x32/0xc0
[ 1263.788373]  [<ffffffff8125aded>] debug_dma_free_coherent+0x6d/0x80
[ 1263.788381]  [<ffffffffa0701c3c>] ath_mci_cleanup+0x7c/0x110 [ath9k]
[ 1263.788387]  [<ffffffffa06f4033>] ath9k_deinit_softc+0x113/0x120 [ath9k]
[ 1263.788392]  [<ffffffffa06f55cc>] ath9k_deinit_device+0x5c/0x70 [ath9k]
[ 1263.788397]  [<ffffffffa0704934>] ath_pci_remove+0x54/0xa0 [ath9k]
[ 1263.788401]  [<ffffffff81267d06>] pci_device_remove+0x46/0x110
[ 1263.788406]  [<ffffffff813102bc>] __device_release_driver+0x7c/0xe0
[ 1263.788410]  [<ffffffff81310a00>] driver_detach+0xd0/0xe0
[ 1263.788414]  [<ffffffff81310118>] bus_remove_driver+0x88/0xe0
[ 1263.788418]  [<ffffffff813111c2>] driver_unregister+0x62/0xa0
[ 1263.788421]  [<ffffffff812680c4>] pci_unregister_driver+0x44/0xc0
[ 1263.788427]  [<ffffffffa0705015>] ath_pci_exit+0x15/0x20 [ath9k]
[ 1263.788432]  [<ffffffffa070a92d>] ath9k_exit+0x15/0x31 [ath9k]
[ 1263.788436]  [<ffffffff810b971c>] sys_delete_module+0x18c/0x270
[ 1263.788441]  [<ffffffff81436edd>] ? retint_swapgs+0x13/0x1b
[ 1263.788446]  [<ffffffff812483be>] ? trace_hardirqs_on_thunk+0x3a/0x3f
[ 1263.788450]  [<ffffffff814378e9>] system_call_fastpath+0x16/0x1b
[ 1263.788453] ---[ end trace 3ab4d030ffde40d4 ]---

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2012-02-27 14:06:33 -05:00
..
ahb.c drivers/net: Add module.h to drivers who were implicitly using it 2011-10-31 19:31:07 -04:00
ani.c ath: Convert ath_dbg(bar, ATH_DBG_<FOO>, to ath_dbg(bar, FOO 2011-12-19 14:35:31 -05:00
ani.h ath9k: Store noise immunity values across scanning 2011-09-20 14:43:49 -04:00
ar5008_initvals.h ath9k_hw: fix the last register write for ar5416 addac 2011-09-13 15:42:31 -04:00
ar5008_phy.c ath: Convert ath_dbg(bar, ATH_DBG_<FOO>, to ath_dbg(bar, FOO 2011-12-19 14:35:31 -05:00
ar9001_initvals.h ath9k_hw: remove duplicate initvals 2012-02-27 14:05:41 -05:00
ar9002_calib.c ath: Convert ath_dbg(bar, ATH_DBG_<FOO>, to ath_dbg(bar, FOO 2011-12-19 14:35:31 -05:00
ar9002_hw.c ath9k_hw: remove duplicate initvals 2012-02-27 14:05:41 -05:00
ar9002_initvals.h ath9k_hw: remove duplicate initvals 2012-02-27 14:05:41 -05:00
ar9002_mac.c ath: Convert ath_dbg(bar, ATH_DBG_<FOO>, to ath_dbg(bar, FOO 2011-12-19 14:35:31 -05:00
ar9002_phy.c ath9k_hw: add a missing delay for an analog register 2011-07-11 15:02:15 -04:00
ar9002_phy.h
ar9003_2p2_initvals.h ath9k_hw: Updated AR9003 tx gain table for 5GHz 2011-10-14 14:48:21 -04:00
ar9003_calib.c ath: Convert ath_dbg(bar, ATH_DBG_<FOO>, to ath_dbg(bar, FOO 2011-12-19 14:35:31 -05:00
ar9003_eeprom.c ath9k: Remove AR9462 v1.0 support 2012-02-27 14:06:33 -05:00
ar9003_eeprom.h ath9k_hw: Read and configure quick drop for AR9003 2011-11-11 12:32:48 -05:00
ar9003_hw.c ath9k: Remove AR9462 v1.0 support 2012-02-27 14:06:33 -05:00
ar9003_mac.c ath9k: Fix descriptor length for AR9462 2012-02-27 14:05:44 -05:00
ar9003_mac.h ath9k: Fix descriptor length for AR9462 2012-02-27 14:05:44 -05:00
ar9003_mci.c ath9k: Cleanup MCI init/deinit routines 2012-02-27 14:06:33 -05:00
ar9003_mci.h ath9k_hw: add definitions to support MCI h/w code 2011-11-30 15:08:39 -05:00
ar9003_paprd.c ath: Convert ath_dbg(bar, ATH_DBG_<FOO>, to ath_dbg(bar, FOO 2011-12-19 14:35:31 -05:00
ar9003_phy.c ath9k: Initialize NF values properly 2012-02-27 14:05:44 -05:00
ar9003_phy.h ath9k: Remove AR9462 v1.0 support 2012-02-27 14:06:33 -05:00
ar9003_rtt.c ath9k_hw: fix sparse warnings on ar9003_rtt.c 2012-01-04 14:30:40 -05:00
ar9003_rtt.h ath9k_hw: Add radio retention support for AR9480 2011-10-14 14:48:22 -04:00
ar9330_1p1_initvals.h ath9k: add AR9330 initvals 2011-06-22 16:09:49 -04:00
ar9330_1p2_initvals.h ath9k: add AR9330 initvals 2011-06-22 16:09:49 -04:00
ar9340_initvals.h
ar9462_2p0_initvals.h ath9k: Remove unused initvals 2012-02-27 14:05:43 -05:00
ar9485_initvals.h ath9k_hw: Update AR9485 initvals to fix system hang issue 2011-11-02 15:23:12 -04:00
ar9580_1p0_initvals.h ath9k_hw: add AR9580 support 2011-08-26 10:47:58 -04:00
ath9k.h ath9k_hw: fix a comment 2012-01-10 15:46:39 -05:00
beacon.c ath9k: tx queue enable is read only for EDMA chipsets 2012-01-04 14:31:46 -05:00
btcoex.c ath9k_hw: make bluetooth coexistence support optional at compile time 2011-12-19 14:46:55 -05:00
btcoex.h ath9k: Cleanup MCI init/deinit routines 2012-02-27 14:06:33 -05:00
calib.c ath9k: Fix regression in channelwidth switch at the same channel 2012-01-10 15:46:40 -05:00
calib.h ath9k_hw: fix a comment 2012-01-10 15:46:39 -05:00
common.c ath9k_hw: clean up tx power handling 2011-10-11 16:41:26 -04:00
common.h ath9k: Move ath9k_init_crypto to common 2011-08-24 13:59:45 -04:00
debug.c ath9k: Fix phyerr debug statistics 2012-02-27 14:05:43 -05:00
debug.h ath9k: add DFS radar pulse processing 2011-12-15 14:46:37 -05:00
dfs.c ath9k: fix roadkill due to Joe's patch on ath_dbg() changes 2011-12-21 15:06:11 -05:00
dfs.h ath9k: add DFS radar pulse processing 2011-12-15 14:46:37 -05:00
dfs_debug.c ath9k: add DFS radar pulse processing 2011-12-15 14:46:37 -05:00
dfs_debug.h ath9k: classify DFS debug header further 2011-12-21 15:06:09 -05:00
eeprom.c ath: Convert ath_dbg(bar, ATH_DBG_<FOO>, to ath_dbg(bar, FOO 2011-12-19 14:35:31 -05:00
eeprom.h ath9k_hw: Read and configure quick drop for AR9003 2011-11-11 12:32:48 -05:00
eeprom_4k.c ath: Convert ath_dbg(bar, ATH_DBG_<FOO>, to ath_dbg(bar, FOO 2011-12-19 14:35:31 -05:00
eeprom_9287.c ath: Convert ath_dbg(bar, ATH_DBG_<FOO>, to ath_dbg(bar, FOO 2011-12-19 14:35:31 -05:00
eeprom_def.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem 2012-01-03 15:16:34 -05:00
gpio.c ath9k_hw: make bluetooth coexistence support optional at compile time 2011-12-19 14:46:55 -05:00
hif_usb.c ath9k: cleanup a min_t() cast 2012-02-06 14:55:42 -05:00
hif_usb.h ath9k_htc: Load firmware asynchronously 2012-01-30 15:48:42 -05:00
htc.h ath9k_htc: minor clean-up 2011-08-10 14:07:42 -04:00
htc_drv_beacon.c ath: Convert ath_dbg(bar, ATH_DBG_<FOO>, to ath_dbg(bar, FOO 2011-12-19 14:35:31 -05:00
htc_drv_debug.c wireless: ath9k: use %pM to print MAC 2011-07-20 15:04:39 -04:00
htc_drv_gpio.c ath9k_hw: make bluetooth coexistence support optional at compile time 2011-12-19 14:46:55 -05:00
htc_drv_init.c ath9k_htc: claim support for IBSS RSN 2012-01-24 14:32:29 -05:00
htc_drv_main.c ath9k_htc: claim support for IBSS RSN 2012-01-24 14:32:29 -05:00
htc_drv_txrx.c ath: Convert ath_dbg(bar, ATH_DBG_<FOO>, to ath_dbg(bar, FOO 2011-12-19 14:35:31 -05:00
htc_hst.c
htc_hst.h
hw-ops.h ath9k_hw: add DFS testing check 2011-12-15 14:46:37 -05:00
hw.c ath9k: Remove AR9462 v1.0 support 2012-02-27 14:06:33 -05:00
hw.h ath9k_hw: increase tx status ring buffer size 2012-01-04 14:30:46 -05:00
init.c ath9k: Fix kernel panic during driver initilization 2012-02-03 14:18:02 -05:00
Kconfig ath9k_hw: make bluetooth coexistence support optional at compile time 2011-12-19 14:46:55 -05:00
mac.c ath9k_hw: fix interpretation of the rx KeyMiss flag 2012-01-16 15:01:15 -05:00
mac.h ath9k_hw: fix a regression in key miss handling 2011-10-11 16:41:29 -04:00
main.c ath9k: remove unnecessary PS wrappers 2012-02-22 14:51:19 -05:00
Makefile ath9k: add DFS radar pulse processing 2011-12-15 14:46:37 -05:00
mci.c ath9k: Cleanup MCI init/deinit routines 2012-02-27 14:06:33 -05:00
mci.h ath9k: Cleanup MCI init/deinit routines 2012-02-27 14:06:33 -05:00
pci.c ath9k_hw: make bluetooth coexistence support optional at compile time 2011-12-19 14:46:55 -05:00
phy.h
rc.c ath9k: avoid useless cast from (struct ath_rateset *) to (u8 *) and back 2012-02-27 14:05:45 -05:00
rc.h ath9k: Remove virtual wiphy specific frame type 2011-08-09 15:42:38 -04:00
recv.c ath9k: fix a WEP crypto related regression 2012-02-06 11:34:02 -05:00
reg.h ath9k: Remove AR9462 v1.0 support 2012-02-27 14:06:33 -05:00
wmi.c ath: Convert ath_dbg(bar, ATH_DBG_<FOO>, to ath_dbg(bar, FOO 2011-12-19 14:35:31 -05:00
wmi.h
xmit.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem 2012-01-05 10:13:24 -05:00