diff options
author | Pyun YongHyeon <yongari@FreeBSD.org> | 2011-11-22 18:58:39 +0000 |
---|---|---|
committer | Pyun YongHyeon <yongari@FreeBSD.org> | 2011-11-22 18:58:39 +0000 |
commit | 471ad1d0974545b33e5744dce33be0cdb46a3b00 (patch) | |
tree | 0c41226f20b4bab54aeb523bda54f55fbf11309a /sys/dev/vge/if_vge.c | |
parent | 8326714bc16bb49740c652488cd272c7779e2113 (diff) | |
download | src-471ad1d0974545b33e5744dce33be0cdb46a3b00.tar.gz src-471ad1d0974545b33e5744dce33be0cdb46a3b00.zip |
Always start MII auto polling before accessing any MII registers.
Notes
Notes:
svn path=/head/; revision=227828
Diffstat (limited to 'sys/dev/vge/if_vge.c')
-rw-r--r-- | sys/dev/vge/if_vge.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/vge/if_vge.c b/sys/dev/vge/if_vge.c index f4ce30ab2a23..c75726194ad6 100644 --- a/sys/dev/vge/if_vge.c +++ b/sys/dev/vge/if_vge.c @@ -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. |