Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/serial/uark.c
Show First 20 Lines • Show All 219 Lines • ▼ Show 20 Lines | if (error) { | ||||
goto detach; | goto detach; | ||||
} | } | ||||
/* clear stall at first run */ | /* clear stall at first run */ | ||||
mtx_lock(&sc->sc_mtx); | mtx_lock(&sc->sc_mtx); | ||||
usbd_xfer_set_stall(sc->sc_xfer[UARK_BULK_DT_WR]); | usbd_xfer_set_stall(sc->sc_xfer[UARK_BULK_DT_WR]); | ||||
usbd_xfer_set_stall(sc->sc_xfer[UARK_BULK_DT_RD]); | usbd_xfer_set_stall(sc->sc_xfer[UARK_BULK_DT_RD]); | ||||
mtx_unlock(&sc->sc_mtx); | mtx_unlock(&sc->sc_mtx); | ||||
error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, | error = ucom_attach_usb(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, | ||||
&uark_callback, &sc->sc_mtx); | &uark_callback, &sc->sc_mtx, uaa->device); | ||||
if (error) { | if (error) { | ||||
DPRINTF("ucom_attach failed\n"); | DPRINTF("ucom_attach failed\n"); | ||||
goto detach; | goto detach; | ||||
} | } | ||||
ucom_set_pnpinfo_usb(&sc->sc_super_ucom, dev); | ucom_set_pnpinfo_usb(&sc->sc_super_ucom, dev); | ||||
return (0); /* success */ | return (0); /* success */ | ||||
▲ Show 20 Lines • Show All 233 Lines • Show Last 20 Lines |