svn commit: r227828 - head/sys/dev/vge
Pyun YongHyeon
yongari at FreeBSD.org
Tue Nov 22 18:58:39 UTC 2011
Author: yongari
Date: Tue Nov 22 18:58:39 2011
New Revision: 227828
URL: http://svn.freebsd.org/changeset/base/227828
Log:
Always start MII auto polling before accessing any MII registers.
Modified:
head/sys/dev/vge/if_vge.c
Modified: head/sys/dev/vge/if_vge.c
==============================================================================
--- head/sys/dev/vge/if_vge.c Tue Nov 22 18:53:54 2011 (r227827)
+++ head/sys/dev/vge/if_vge.c Tue Nov 22 18:58:39 2011 (r227828)
@@ -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.
More information about the svn-src-all
mailing list