7647626d33
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_if.m | ||
etherswitch.c | ||
etherswitch.h | ||
miiproxy.c | ||
miiproxy.h |