OpenCloudOS-Kernel/drivers/net/wireless/rt2x00
Helmut Schaa abc1199411 rt2x00: Fix PCI interrupt processing race on SMP systems
When toggle_irq is called for PCI devices to disable device interrupts
it used tasklet_disable to wait for a possibly running tasklet to finish.
However, on SMP systems the tasklet might still be scheduled on another CPU.
Instead, use tasklet_kill to ensure that all scheduled tasklets are finished
before returning from toggle_irq.

Furthermore, it was possible that a tasklet reenabled its interrupt even
though interrupts have been disabled already. Fix this by checking the
DEVICE_STATE_ENABLED_RADIO flag before reenabling single interrupts
during tasklet processing.

While at it also enable/kill the TBTT and PRETBTT tasklets in the
toggle_irq callback and only use tasklet_kill in stop_queue to wait
for a currently scheduled beacon update before returning.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2011-08-09 15:52:08 -04:00
..
Kconfig rt2x00: Enabled rt35xx device support by default. 2011-06-01 15:10:59 -04:00
Makefile rt2x00: Merge rt2x00ht.c contents in other files. 2011-04-19 15:39:56 -04:00
rt2x00.h Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2011-07-08 11:03:36 -04:00
rt2x00config.c rt2x00: fix rmmod crash 2011-06-06 15:24:18 -04:00
rt2x00crypto.c rt2x00: Don't use queue entry as parameter when creating TX descriptor. 2011-07-07 13:20:58 -04:00
rt2x00debug.c
rt2x00debug.h
rt2x00dev.c rt2x00: Fix PCI interrupt processing race on SMP systems 2011-08-09 15:52:08 -04:00
rt2x00dump.h
rt2x00firmware.c
rt2x00leds.c
rt2x00leds.h
rt2x00lib.h rt2x00: Fix compilation without CONFIG_RT2X00_LIB_CRYPTO 2011-08-02 13:48:14 -04:00
rt2x00link.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2011-04-25 14:34:25 -04:00
rt2x00mac.c rt2x00: fix usage of NULL queue 2011-08-02 13:48:14 -04:00
rt2x00pci.c
rt2x00pci.h
rt2x00queue.c rt2x00: Reduce window of a queue's tx lock. 2011-07-07 13:20:58 -04:00
rt2x00queue.h rt2x00: Serialize TX operations on a queue. 2011-07-07 13:20:57 -04:00
rt2x00reg.h
rt2x00soc.c
rt2x00soc.h
rt2x00usb.c rt2x00: reset usb devices at probe 2011-06-22 16:09:44 -04:00
rt2x00usb.h Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2011-05-05 13:32:35 -04:00
rt61pci.c rt2x00: Fix PCI interrupt processing race on SMP systems 2011-08-09 15:52:08 -04:00
rt61pci.h
rt73usb.c rt2x00: Implement tx_frames_pending mac80211 callback function. 2011-07-07 13:21:00 -04:00
rt73usb.h
rt2400pci.c rt2x00: Fix PCI interrupt processing race on SMP systems 2011-08-09 15:52:08 -04:00
rt2400pci.h
rt2500pci.c rt2x00: Fix PCI interrupt processing race on SMP systems 2011-08-09 15:52:08 -04:00
rt2500pci.h
rt2500usb.c rt2x00: Implement tx_frames_pending mac80211 callback function. 2011-07-07 13:21:00 -04:00
rt2500usb.h
rt2800.h rt2x00: Add support for RT3572/RT3592/RT3592+Bluetooth combo card 2011-06-01 15:10:59 -04:00
rt2800lib.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem 2011-08-03 09:18:21 -04:00
rt2800lib.h rt2x00: Move rt2800_txdone and rt2800_txdone_entry_check to rt2800usb. 2011-06-01 15:10:59 -04:00
rt2800pci.c rt2x00: Fix PCI interrupt processing race on SMP systems 2011-08-09 15:52:08 -04:00
rt2800pci.h
rt2800usb.c rt2800usb: Add new device ID for Belkin 2011-07-11 15:02:21 -04:00
rt2800usb.h