Move axe_reset() to axe_init().
This commit is contained in:
parent
6dd81ec722
commit
675c1ae83d
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user