OpenCloudOS-Kernel/drivers/net/wireless/rt2x00
Ivo van Doorn 7dab73b37f rt2x00: Split rt2x00dev->flags
The number of flags defined for the rt2x00dev->flags field,
has been growing over the years. Currently we are approaching
the maximum number of bits which are available in the field.

A secondary problem, is that one part of the field are initialized only
during boot, because the driver requirements are initialized or device
requirements are loaded from the EEPROM. In both cases, the flags are
fixed and will not change during device operation. The other flags are
the device state, and will change frequently. So far this resulted in the fact
that for some flags, the atomic bit accessors are used, while for the others
the non-atomic variants are used.

By splitting the flags up into a "flags" and "cap_flags" we can put all flags
which are fixed inside "cap_flags". This field can then be read non-atomically.
In the "flags" field we keep the device state, which is going to be read atomically.

This adds more room for more flags in the future, and sanitizes the field access methods.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2011-04-19 15:39:11 -04:00
..
Kconfig rt2x00: Add support for RT5390 chip 2011-02-21 15:40:00 -05:00
Makefile
rt2x00.h rt2x00: Split rt2x00dev->flags 2011-04-19 15:39:11 -04:00
rt2x00config.c rt2x00: Split rt2x00dev->flags 2011-04-19 15:39:11 -04:00
rt2x00crypto.c rt2x00: Split rt2x00dev->flags 2011-04-19 15:39:11 -04:00
rt2x00debug.c rt2x00: Split rt2x00dev->flags 2011-04-19 15:39:11 -04:00
rt2x00debug.h
rt2x00dev.c rt2x00: Split rt2x00dev->flags 2011-04-19 15:39:11 -04:00
rt2x00dump.h rt2x00: correct sparse warning in rt2x00debug.c 2010-07-20 16:49:41 -04:00
rt2x00firmware.c rt2x00: Split rt2x00dev->flags 2011-04-19 15:39:11 -04:00
rt2x00ht.c rt2x00: Fix STBC transmissions to STAs with Rx STBC > 1 2011-04-04 16:20:03 -04:00
rt2x00leds.c
rt2x00leds.h
rt2x00lib.h rt2x00: Split rt2x00dev->flags 2011-04-19 15:39:11 -04:00
rt2x00link.c rt2x00: Split rt2x00dev->flags 2011-04-19 15:39:11 -04:00
rt2x00mac.c rt2x00: Split rt2x00dev->flags 2011-04-19 15:39:11 -04:00
rt2x00pci.c rt2x00: Limit rt2x00pci rxdone processing to 16 entries at once 2011-04-04 16:20:01 -04:00
rt2x00pci.h rt2x00: Limit rt2x00pci rxdone processing to 16 entries at once 2011-04-04 16:20:01 -04:00
rt2x00queue.c rt2x00: Split rt2x00dev->flags 2011-04-19 15:39:11 -04:00
rt2x00queue.h rt2x00: Fix tx aggregation problems with some clients 2011-04-04 16:20:04 -04:00
rt2x00reg.h rt2x00: Remove STATE_RADIO_IRQ_OFF_ISR and STATE_RADIO_IRQ_ON_ISR 2011-01-31 15:06:24 -05:00
rt2x00soc.c rt2x00: Use ioremap for SoC devices instead of KSEG1ADDR. 2010-11-17 16:18:54 -05:00
rt2x00soc.h
rt2x00usb.c rt2x00: Split rt2x00dev->flags 2011-04-19 15:39:11 -04:00
rt2x00usb.h rt2x00: Add "flush" queue command 2010-12-13 15:23:35 -05:00
rt61pci.c rt2x00: Split rt2x00dev->flags 2011-04-19 15:39:11 -04:00
rt61pci.h rt2x00: Fix WMM Queue naming 2010-12-13 15:23:36 -05:00
rt73usb.c rt2x00: Split rt2x00dev->flags 2011-04-19 15:39:11 -04:00
rt73usb.h rt2x00: Fix WMM Queue naming 2010-12-13 15:23:36 -05:00
rt2400pci.c rt2x00: Split rt2x00dev->flags 2011-04-19 15:39:11 -04:00
rt2400pci.h rt2x00: checkpatch.pl error fixes for rt2400pci.h 2010-11-15 13:26:13 -05:00
rt2500pci.c rt2x00: Split rt2x00dev->flags 2011-04-19 15:39:11 -04:00
rt2500pci.h rt2x00: checkpatch.pl error fixes for rt2500pci.h 2010-11-15 13:26:15 -05:00
rt2500usb.c rt2x00: Split rt2x00dev->flags 2011-04-19 15:39:11 -04:00
rt2500usb.h
rt2800.h rt2x00: Implement tx power temperature compensation 2011-04-04 16:20:03 -04:00
rt2800lib.c rt2x00: Split rt2x00dev->flags 2011-04-19 15:39:11 -04:00
rt2800lib.h rt2x00: Implement tx power temperature compensation 2011-04-04 16:20:03 -04:00
rt2800pci.c rt2x00: Split rt2x00dev->flags 2011-04-19 15:39:11 -04:00
rt2800pci.h rt2x00: checkpatch.pl error fixes for rt2800pci.h 2010-11-15 13:26:20 -05:00
rt2800usb.c rt2x00: Split rt2x00dev->flags 2011-04-19 15:39:11 -04:00
rt2800usb.h rt2x00: checkpatch.pl error fixes for rt2800usb.h 2010-11-15 13:26:23 -05:00