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:
Pyun YongHyeon 2009-12-12 00:06:43 +00:00
parent c4cd42053e
commit f52384d1cf

View File

@ -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. */