Move axe_reset() to axe_init().

This commit is contained in:
Pyun YongHyeon 2010-11-28 00:57:48 +00:00
parent 6dd81ec722
commit 675c1ae83d

View File

@ -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);
}