linux/drivers/net/wireless/p54
Luis R. Rodriguez 42935ecaf4 mac80211: redefine usage of the mac80211 workqueue
The mac80211 workqueue exists to enable mac80211 and drivers
to queue their own work on a single threaded workqueue. mac80211
takes care to flush the workqueue during suspend but we never
really had requirements on drivers for how they should use
the workqueue in consideration for suspend.

We extend mac80211 to document how the mac80211 workqueue should
be used, how it should not be used and finally move raw access to
the workqueue to mac80211 only. Drivers and mac80211 use helpers
to queue work onto the mac80211 workqueue:

  * ieee80211_queue_work()
  * ieee80211_queue_delayed_work()

These helpers will now warn if mac80211 already completed its
suspend cycle and someone is trying to queue work. mac80211
flushes the mac80211 workqueue prior to suspend a few times,
but we haven't taken the care to ensure drivers won't add more
work after suspend. To help with this we add a warning when
someone tries to add work and mac80211 already completed the
suspend cycle.

Drivers should ensure they cancel any work or delayed work
in the mac80211 stop() callback.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2009-08-04 16:44:14 -04:00
..
Kconfig p54: Kconfig maintenance 2009-03-27 20:13:18 -04:00
Makefile p54: Modify p54 files for new organization 2009-07-10 15:02:24 -04:00
eeprom.c p54: Eliminate unnecessary initialization 2009-07-24 15:05:27 -04:00
eeprom.h p54: Move eeprom header 2009-07-10 15:01:58 -04:00
fwio.c p54: fix a fw crash caused by statistic feedback 2009-07-24 15:05:22 -04:00
led.c mac80211: redefine usage of the mac80211 workqueue 2009-08-04 16:44:14 -04:00
lmac.h p54: fix beaconing related firmware crash 2009-07-24 15:05:21 -04:00
main.c mac80211: redefine usage of the mac80211 workqueue 2009-08-04 16:44:14 -04:00
net2280.h
p54.h p54: fix beaconing related firmware crash 2009-07-24 15:05:21 -04:00
p54pci.c p54: Modify p54 files for new organization 2009-07-10 15:02:24 -04:00
p54pci.h p54pci: cache firmware for suspend/resume 2008-11-25 16:41:38 -05:00
p54spi.c mac80211: redefine usage of the mac80211 workqueue 2009-08-04 16:44:14 -04:00
p54spi.h p54spi: remove arch specific dependencies 2009-01-29 16:00:44 -05:00
p54spi_eeprom.h p54spi: stlc45xx eeprom blob 2009-01-29 16:00:25 -05:00
p54usb.c p54usb: fix stalls caused by urb allocation failures 2009-07-10 15:02:30 -04:00
p54usb.h p54usb: rework driver for resume 2009-05-06 15:14:41 -04:00
txrx.c mac80211: redefine usage of the mac80211 workqueue 2009-08-04 16:44:14 -04:00