mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
During attach we release the lock to call e6000sw_attach_miibus(), which
calls mii_attach(). The mii_attach() function calls miibus_readreg() /
miibus_writereg(). However, these are set to be
e6000sw_readphy_locked().
That is, the read/write phy functions do not acquire the lock, but
expect to be called while locked. Simply do not unlock and relock while
calling mii_attach().
Reviewed by: Hubert Mazur <hum@semihalf.com>
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D36117
|
||
|---|---|---|
| .. | ||
| ar40xx | ||
| arswitch | ||
| e6000sw | ||
| felix | ||
| infineon | ||
| ip17x | ||
| micrel | ||
| mtkswitch | ||
| rtl8366 | ||
| ukswitch | ||
| etherswitch.c | ||
| etherswitch.h | ||
| etherswitch_if.m | ||
| miiproxy.c | ||
| miiproxy.h | ||