1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

Always start MII auto polling before accessing any MII registers.

This commit is contained in:
Pyun YongHyeon 2011-11-22 18:58:39 +00:00
parent 8326714bc1
commit 471ad1d097
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227828

View File

@ -1099,6 +1099,7 @@ vge_attach(device_t dev)
goto fail;
}
vge_miipoll_start(sc);
/* Do MII setup */
error = mii_attach(dev, &sc->vge_miibus, ifp, vge_ifmedia_upd,
vge_ifmedia_sts, BMSR_DEFCAPMASK, sc->vge_phyaddr, MII_OFFSET_ANY,
@ -2028,6 +2029,7 @@ vge_init_locked(struct vge_softc *sc)
*/
vge_stop(sc);
vge_reset(sc);
vge_miipoll_start(sc);
/*
* Initialize the RX and TX descriptors and mbufs.