opnsense-src/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.c arswitch: Ensure the lock is always held when calling arswitch_modifyreg() 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 Initial commit of AR9340 switch SoC support. 2013-10-16 03:15:52 +00:00
arswitch_phy.c [arswitch] extend the debug support to be configurable at runtime. 2016-08-07 01:32:37 +00:00
arswitch_phy.h Fix up support for the AR8327. 2015-03-08 03:53:36 +00:00
arswitch_reg.c etherswitch: Unbreak LINT build 2016-08-08 05:57:04 +00:00
arswitch_reg.h Add mmd declaration. 2014-02-17 05:51:37 +00:00
arswitch_vlans.c Turns out the AR933x looks like the AR7240/AR7241 switch as far as VLAN 2015-03-28 23:20:46 +00:00
arswitch_vlans.h Commit 802.1q configuration support for the AR8327. 2015-03-13 02:16:39 +00:00
arswitchreg.h Add per-port vlan support for the AR8327. 2015-03-08 21:59:03 +00:00
arswitchvar.h [arswitch] extend the debug support to be configurable at runtime. 2016-08-07 01:32:37 +00:00