freebsd-skq/sys/dev/etherswitch/arswitch
kp bf7a58e32f arswitch: Ensure the lock is always held when calling arswitch_modifyreg()
arswitch_setled() and a number of _global_setup functions did not acquire the
lock before calling arswitch_modifyreg(). With WITNESS enabled this would
instantly panic.

Discovered on a TPLink-3600:
("panic: mutex arswitch not owned at sys/dev/etherswitch/arswitch/arswitch_reg.c:236")

Reviewed by:	adrian, kan
Differential Revision:	https://reviews.freebsd.org/D9187
2017-01-15 10:21:25 +00:00
..
arswitch_7240.c arswitch: Ensure the lock is always held when calling arswitch_modifyreg() 2017-01-15 10:21:25 +00:00
arswitch_7240.h
arswitch_8216.c
arswitch_8216.h
arswitch_8226.c
arswitch_8226.h
arswitch_8316.c arswitch: Ensure the lock is always held when calling arswitch_modifyreg() 2017-01-15 10:21:25 +00:00
arswitch_8316.h
arswitch_8327.c arswitch: Ensure the lock is always held when calling arswitch_modifyreg() 2017-01-15 10:21:25 +00:00
arswitch_8327.h [etherswitch] add in an initial API for controlling per-port LED behaviour. 2016-08-04 17:45:35 +00:00
arswitch_9340.c arswitch: Ensure the lock is always held when calling arswitch_modifyreg() 2017-01-15 10:21:25 +00:00
arswitch_9340.h
arswitch_phy.c [arswitch] extend the debug support to be configurable at runtime. 2016-08-07 01:32:37 +00:00
arswitch_phy.h
arswitch_reg.c etherswitch: Unbreak LINT build 2016-08-08 05:57:04 +00:00
arswitch_reg.h
arswitch_vlans.c
arswitch_vlans.h
arswitch.c arswitch: Ensure the lock is always held when calling arswitch_modifyreg() 2017-01-15 10:21:25 +00:00
arswitchreg.h
arswitchvar.h [arswitch] extend the debug support to be configurable at runtime. 2016-08-07 01:32:37 +00:00