1
linux/drivers/net
Ivo van Doorn 9a95dba327 rt2x00: Fix LED state handling
For every global LED state change (register/unregister,
suspend/resume) we should force the LEDS to turn off.
This makes sure that the LEDS will always be in a sane
state after the state switch.

Note that when unregister is called but the LED class
wasn't resumed yet, we shouldn't change the LED state
since we might not have access to the device (device
was unplugged while suspended).

Also remove the checks in the activity, assoc and
radio LEDS which blocked calls to brightness_set()
when the state hasn't changed. Some of those LEDS
could be enabled by themselves when something happens
in the hardware (e.g. firmware is loaded). We already
did called rt2x00leds to switch the LED off, but those
calls were blocked.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2008-11-21 11:06:05 -05:00
..
appletalk
arcnet
arm
atl1e netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
atlx netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
bonding netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
can
chelsio netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
cris
cxgb3 netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
e1000 netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
e1000e netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
ehea
enic netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
fs_enet
hamradio netdevice hamradio: Convert directly reference of netdev->priv 2008-11-20 01:02:05 -08:00
ibm_newemac
igb netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
irda netdevice: safe convert to netdev_priv() #part-2 2008-11-12 23:38:14 -08:00
ixgb netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
ixgbe ixgbe: convert directly reference of netdev->priv 2008-11-21 01:56:07 -08:00
ixp2000
mlx4 Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-11-18 23:38:23 -08:00
myri10ge myri10ge: remove hardcoded sram_size 2008-11-20 01:50:28 -08:00
netxen netdevice: safe convert to netdev_priv() #part-2 2008-11-12 23:38:14 -08:00
pcmcia netdevice: safe convert to netdev_priv() #part-2 2008-11-12 23:38:14 -08:00
phy Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-11-20 16:44:00 -08:00
qlge
sfc sfc: Fix dependency for SFC_MTD 2008-11-20 04:17:42 -08:00
skfp fddi: convert to new network device ops 2008-11-20 20:29:48 -08:00
tokenring netdevice: safe convert to netdev_priv() #part-3 2008-11-12 23:38:36 -08:00
tulip netdevice: safe convert to netdev_priv() #part-3 2008-11-12 23:38:36 -08:00
usb Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-11-20 16:44:00 -08:00
wan netdevice wanrouter: Convert directly reference of netdev->priv 2008-11-20 04:26:21 -08:00
wireless rt2x00: Fix LED state handling 2008-11-21 11:06:05 -05:00
3c59x.c
3c501.c
3c501.h
3c503.c
3c503.h
3c505.c
3c505.h
3c507.c
3c509.c
3c515.c
3c523.c
3c523.h
3c527.c
3c527.h
7990.c
7990.h
8139cp.c netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
8139too.c netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
8390.c
8390.h
8390p.c
82596.c netdevice: 82596: Convert netdev->priv to netdev_priv 2008-11-20 01:01:00 -08:00
a2065.c
a2065.h
ac3200.c
acenic_firmware.h
acenic.c netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
acenic.h
amd8111e.c
amd8111e.h
apne.c
ariadne.c
ariadne.h
at1700.c
atarilance.c
atp.c
atp.h
au1000_eth.c
au1000_eth.h
ax88796.c
b44.c
b44.h
bfin_mac.c
bfin_mac.h
bmac.c
bmac.h
bnx2_fw2.h
bnx2_fw.h
bnx2.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-11-18 23:38:23 -08:00
bnx2.h
bnx2x_fw_defs.h
bnx2x_hsi.h
bnx2x_init_values.h
bnx2x_init.h
bnx2x_link.c
bnx2x_link.h
bnx2x_main.c
bnx2x_reg.h
bnx2x.h
bsd_comp.c
cassini.c
cassini.h
cpmac.c
cs89x0.c
cs89x0.h
de600.c
de600.h
de620.c
de620.h
declance.c netdevice: safe convert to netdev_priv() #part-2 2008-11-12 23:38:14 -08:00
defxx.c defxx: convert driver to net_device_ops 2008-11-20 20:31:40 -08:00
defxx.h
depca.c netdevice: safe convert to netdev_priv() #part-2 2008-11-12 23:38:14 -08:00
depca.h
dl2k.c
dl2k.h
dm9000.c dm9000: Fix build error. 2008-11-16 12:41:35 -08:00
dm9000.h
dummy.c dummy: convert to net_device_ops 2008-11-20 20:28:00 -08:00
e100.c netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
e2100.c
eepro.c netdevice: safe convert to netdev_priv() #part-2 2008-11-12 23:38:14 -08:00
eexpress.c
eexpress.h
enc28j60_hw.h
enc28j60.c
epic100.c netdevice: safe convert to netdev_priv() #part-2 2008-11-12 23:38:14 -08:00
eql.c
es3210.c
eth16i.c netdevice: safe convert to netdev_priv() #part-2 2008-11-12 23:38:14 -08:00
ewrk3.c
ewrk3.h
fealnx.c
fec_mpc52xx_phy.c
fec_mpc52xx.c
fec_mpc52xx.h
fec.c netdevice: safe convert to netdev_priv() #part-2 2008-11-12 23:38:14 -08:00
fec.h
forcedeth.c netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
gianfar_ethtool.c
gianfar_mii.c
gianfar_mii.h
gianfar_sysfs.c
gianfar.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-11-18 23:38:23 -08:00
gianfar.h
hamachi.c
hp100.c
hp100.h
hp-plus.c
hp.c
hplance.c
hplance.h
hydra.c
ibmlana.c
ibmlana.h
ibmveth.c netdevice: safe convert to netdev_priv() #part-2 2008-11-12 23:38:14 -08:00
ibmveth.h
ifb.c netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
ioc3-eth.c
ipg.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-11-20 16:44:00 -08:00
ipg.h
isa-skeleton.c
iseries_veth.c
jazzsonic.c
jme.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-11-20 16:44:00 -08:00
jme.h
Kconfig ixgbe: this patch adds support for DCB to the kernel and ixgbe driver 2008-11-20 20:52:10 -08:00
korina.c
lance.c netdevice lance: Convert directly reference of netdev->priv 2008-11-20 04:05:56 -08:00
lasi_82596.c
lib8390.c
lib82596.c
LICENSE.SRC
lne390.c
loopback.c netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
lp486e.c
mac89x0.c
mac8390.c
macb.c
macb.h
mace.c
mace.h
macmace.c
macsonic.c
macvlan.c netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
Makefile
meth.c
meth.h
mii.c
mipsnet.c
mv643xx_eth.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-11-20 16:44:00 -08:00
mvme147.c netdevice: safe convert to netdev_priv() #part-2 2008-11-12 23:38:14 -08:00
myri_code.h
myri_sbus.c netdevice: safe convert to netdev_priv() #part-2 2008-11-12 23:38:14 -08:00
myri_sbus.h
natsemi.c
ne2.c
ne2k-pci.c netdevice: safe convert to netdev_priv() #part-2 2008-11-12 23:38:14 -08:00
ne3210.c
ne-h8300.c
ne.c
netconsole.c
netx-eth.c
ni52.c netdevice: safe convert to netdev_priv() #part-2 2008-11-12 23:38:14 -08:00
ni52.h
ni65.c netdevice ni65: Convert directly reference of netdev->priv 2008-11-20 04:25:06 -08:00
ni65.h
ni5010.c netdevice: safe convert to netdev_priv() #part-2 2008-11-12 23:38:14 -08:00
ni5010.h
niu.c netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
niu.h NIU: Add Sun CP3260 ATCA blade support 2008-11-14 14:44:08 -08:00
ns83820.c
pasemi_mac_ethtool.c netdevice: safe convert to netdev_priv() #part-2 2008-11-12 23:38:14 -08:00
pasemi_mac.c
pasemi_mac.h
pci-skeleton.c
pcnet32.c
plip.c netdevice: safe convert to netdev_priv() #part-2 2008-11-12 23:38:14 -08:00
ppp_async.c
ppp_deflate.c
ppp_generic.c netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
ppp_mppe.c
ppp_mppe.h
ppp_synctty.c
pppoe.c
pppol2tp.c
pppox.c
ps3_gelic_net.c
ps3_gelic_net.h
ps3_gelic_wireless.c
ps3_gelic_wireless.h
qla3xxx.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-11-18 23:38:23 -08:00
qla3xxx.h
r6040.c
r8169.c netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
rionet.c netdevice: safe convert to netdev_priv() #part-2 2008-11-12 23:38:14 -08:00
rrunner.c hippi: convert driver to net_device_ops 2008-11-20 20:32:15 -08:00
rrunner.h
s2io-regs.h
s2io.c netdevice: safe convert to netdev_priv() #part-2 2008-11-12 23:38:14 -08:00
s2io.h
sb1000.c
sb1250-mac.c
sc92031.c
seeq8005.c
seeq8005.h
sgiseeq.c netdevice: safe convert to netdev_priv() #part-3 2008-11-12 23:38:36 -08:00
sgiseeq.h
sh_eth.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-11-20 16:44:00 -08:00
sh_eth.h
sis190.c
sis900.c netdevice: safe convert to netdev_priv() #part-3 2008-11-12 23:38:36 -08:00
sis900.h
skge.c netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
skge.h
sky2.c netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
sky2.h
slhc.c
slip.c
slip.h
smc91x.c
smc91x.h netdev/smc91x: unify Blackfin code a bit and use proper read/write functions 2008-11-20 01:32:34 -08:00
smc911x.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-11-20 16:44:00 -08:00
smc911x.h
smc9194.c netdevice: safe convert to netdev_priv() #part-3 2008-11-12 23:38:36 -08:00
smc9194.h
smc-mca.c
smc-ultra32.c
smc-ultra.c
smsc911x.c
smsc911x.h
sni_82596.c
sonic.c
sonic.h netdevice: safe convert to netdev_priv() #part-3 2008-11-12 23:38:36 -08:00
Space.c
spider_net_ethtool.c netdevice: safe convert to netdev_priv() #part-3 2008-11-12 23:38:36 -08:00
spider_net.c
spider_net.h
starfire_firmware.h
starfire_firmware.pl
starfire.c
stnic.c
sun3_82586.c netdevice: safe convert to netdev_priv() #part-3 2008-11-12 23:38:36 -08:00
sun3_82586.h
sun3lance.c
sunbmac.c netdevice: safe convert to netdev_priv() #part-3 2008-11-12 23:38:36 -08:00
sunbmac.h
sundance.c
sungem_phy.c
sungem_phy.h
sungem.c netdevice: safe convert to netdev_priv() #part-3 2008-11-12 23:38:36 -08:00
sungem.h
sunhme.c netdevice: safe convert to netdev_priv() #part-3 2008-11-12 23:38:36 -08:00
sunhme.h
sunlance.c
sunqe.c netdevice: safe convert to netdev_priv() #part-3 2008-11-12 23:38:36 -08:00
sunqe.h
sunvnet.c
sunvnet.h
tc35815.c
tehuti_fw.h
tehuti.c netdevice: safe convert to netdev_priv() #part-3 2008-11-12 23:38:36 -08:00
tehuti.h
tg3.c netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
tg3.h
tlan.c
tlan.h
tsi108_eth.c
tsi108_eth.h
tun.c netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
typhoon-firmware.h
typhoon.c netdevice: safe convert to netdev_priv() #part-3 2008-11-12 23:38:36 -08:00
typhoon.h
ucc_geth_ethtool.c net/ucc_geth: Fix oops in uec_get_ethtool_stats() 2008-11-14 18:18:17 -05:00
ucc_geth_mii.c
ucc_geth_mii.h
ucc_geth.c
ucc_geth.h
veth.c netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
via-rhine.c
via-velocity.c netdev: add more functions to netdevice ops 2008-11-20 20:14:53 -08:00
via-velocity.h
virtio_net.c virtio_net: VIRTIO_NET_F_MSG_RXBUF (imprive rcv buffer allocation) 2008-11-16 22:41:34 -08:00
wd.c
xen-netfront.c
xtsonic.c
yellowfin.c
znet.c netdevice: safe convert to netdev_priv() #part-4 2008-11-12 23:39:10 -08:00
zorro8390.c