svn commit: r215962 - head/sys/dev/usb/net
Pyun YongHyeon
yongari at FreeBSD.org
Sun Nov 28 00:57:49 UTC 2010
Author: yongari
Date: Sun Nov 28 00:57:48 2010
New Revision: 215962
URL: http://svn.freebsd.org/changeset/base/215962
Log:
Move axe_reset() to axe_init().
Modified:
head/sys/dev/usb/net/if_axe.c
Modified: head/sys/dev/usb/net/if_axe.c
==============================================================================
--- head/sys/dev/usb/net/if_axe.c Sun Nov 28 00:53:43 2010 (r215961)
+++ head/sys/dev/usb/net/if_axe.c Sun Nov 28 00:57:48 2010 (r215962)
@@ -1022,6 +1022,8 @@ axe_init(struct usb_ether *ue)
/* Cancel pending I/O */
axe_stop(ue);
+ axe_reset(sc);
+
/* Set MAC address. */
if (sc->sc_flags & (AXE_FLAG_178 | AXE_FLAG_772))
axe_cmd(sc, AXE_178_CMD_WRITE_NODEID, 0, 0, IF_LLADDR(ifp));
@@ -1110,6 +1112,4 @@ axe_stop(struct usb_ether *ue)
*/
usbd_transfer_stop(sc->sc_xfer[AXE_BULK_DT_WR]);
usbd_transfer_stop(sc->sc_xfer[AXE_BULK_DT_RD]);
-
- axe_reset(sc);
}
More information about the svn-src-all
mailing list