Remove driver lock assertion in MII register access. This change
was made in r199543 to remove MTX_RECURSE. These routines can be called in device attach phase(e.g. mii_phy_probe()) so checking assertion here is not right as caller does not hold a driver lock.
This commit is contained in:
parent
c4cd42053e
commit
f52384d1cf
@ -378,7 +378,6 @@ vge_miibus_readreg(dev, phy, reg)
|
||||
if (phy != (CSR_READ_1(sc, VGE_MIICFG) & 0x1F))
|
||||
return(0);
|
||||
|
||||
VGE_LOCK_ASSERT(sc);
|
||||
vge_miipoll_stop(sc);
|
||||
|
||||
/* Specify the register we want to read. */
|
||||
@ -417,7 +416,6 @@ vge_miibus_writereg(dev, phy, reg, data)
|
||||
if (phy != (CSR_READ_1(sc, VGE_MIICFG) & 0x1F))
|
||||
return(0);
|
||||
|
||||
VGE_LOCK_ASSERT(sc);
|
||||
vge_miipoll_stop(sc);
|
||||
|
||||
/* Specify the register we want to write. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user