summaryrefslogtreecommitdiffstats
path: root/sys/dev/bce
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2010-07-19 21:32:47 +0000
committeryongari <yongari@FreeBSD.org>2010-07-19 21:32:47 +0000
commit7ded005b160abb3b56680e75ac96c4bd10c710a3 (patch)
tree8712352c20826e1cc5a4821491acba6acdab302a /sys/dev/bce
parentca25b4a12a3cc882383341e0a4b75502ba9660b4 (diff)
downloadFreeBSD-src-7ded005b160abb3b56680e75ac96c4bd10c710a3.zip
FreeBSD-src-7ded005b160abb3b56680e75ac96c4bd10c710a3.tar.gz
Don't change current media in bce_stop(). There is no need to do
this here. Reviewed by: davidch
Diffstat (limited to 'sys/dev/bce')
-rw-r--r--sys/dev/bce/if_bce.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/sys/dev/bce/if_bce.c b/sys/dev/bce/if_bce.c
index 90ea153..412bd15 100644
--- a/sys/dev/bce/if_bce.c
+++ b/sys/dev/bce/if_bce.c
@@ -4577,9 +4577,6 @@ static void
bce_stop(struct bce_softc *sc)
{
struct ifnet *ifp;
- struct ifmedia_entry *ifm;
- struct mii_data *mii = NULL;
- int mtmp, itmp;
DBENTER(BCE_VERBOSE_RESET);
@@ -4587,8 +4584,6 @@ bce_stop(struct bce_softc *sc)
ifp = sc->bce_ifp;
- mii = device_get_softc(sc->bce_miibus);
-
callout_stop(&sc->bce_tick_callout);
/* Disable the transmit/receive blocks. */
@@ -4607,25 +4602,6 @@ bce_stop(struct bce_softc *sc)
/* Free TX buffers. */
bce_free_tx_chain(sc);
- /*
- * Isolate/power down the PHY, but leave the media selection
- * unchanged so that things will be put back to normal when
- * we bring the interface back up.
- */
-
- itmp = ifp->if_flags;
- ifp->if_flags |= IFF_UP;
-
- /* If we are called from bce_detach(), mii is already NULL. */
- if (mii != NULL) {
- ifm = mii->mii_media.ifm_cur;
- mtmp = ifm->ifm_media;
- ifm->ifm_media = IFM_ETHER | IFM_NONE;
- mii_mediachg(mii);
- ifm->ifm_media = mtmp;
- }
-
- ifp->if_flags = itmp;
sc->watchdog_timer = 0;
sc->bce_link_up = FALSE;
OpenPOWER on IntegriCloud