freebsd-dev/sys/dev/etherswitch/arswitch
Kristof Provost 6d011946c5 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 [mdio] migrate mdiobus out of etherswitch and into a top-level device of its own. 2015-12-26 02:31:39 +00:00
arswitch_8216.h
arswitch_8226.c [mdio] migrate mdiobus out of etherswitch and into a top-level device of its own. 2015-12-26 02:31:39 +00:00
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