svn commit: r304335 - head/sys/dev/usb/net
Pyun YongHyeon
yongari at FreeBSD.org
Thu Aug 18 06:46:15 UTC 2016
Author: yongari
Date: Thu Aug 18 06:46:14 2016
New Revision: 304335
URL: https://svnweb.freebsd.org/changeset/base/304335
Log:
In axge_stop(), clear medium receive enable bit which will stop RX
MAC operation.
Modified:
head/sys/dev/usb/net/if_axge.c
Modified: head/sys/dev/usb/net/if_axge.c
==============================================================================
--- head/sys/dev/usb/net/if_axge.c Thu Aug 18 06:39:09 2016 (r304334)
+++ head/sys/dev/usb/net/if_axge.c Thu Aug 18 06:46:14 2016 (r304335)
@@ -847,12 +847,17 @@ axge_stop(struct usb_ether *ue)
{
struct axge_softc *sc;
struct ifnet *ifp;
+ uint16_t val;
sc = uether_getsc(ue);
ifp = uether_getifp(ue);
AXGE_LOCK_ASSERT(sc, MA_OWNED);
+ val = axge_read_cmd_2(sc, AXGE_ACCESS_MAC, 2, AXGE_MSR);
+ val &= ~MSR_RE;
+ axge_write_cmd_2(sc, AXGE_ACCESS_MAC, 2, AXGE_MSR, val);
+
ifp->if_drv_flags &= ~(IFF_DRV_RUNNING | IFF_DRV_OACTIVE);
sc->sc_flags &= ~AXGE_FLAG_LINK;
More information about the svn-src-head
mailing list