Partial revert of f83f5d5839
for uftdi(4).
Apparently devices with bcdDevice less than 0x0600, have problems receiving ZLPs. Reported by: kevlo@ MFC after: 1 week Sponsored by: NVIDIA Networking
This commit is contained in:
parent
ced2dcadcc
commit
bcb195d917
@ -1117,7 +1117,7 @@ uftdi_attach(device_t dev)
|
||||
}
|
||||
/* clear stall at first run */
|
||||
mtx_lock(&sc->sc_mtx);
|
||||
usbd_xfer_set_zlp(sc->sc_xfer[UFTDI_BULK_DT_WR]);
|
||||
usbd_xfer_set_stall(sc->sc_xfer[UFTDI_BULK_DT_WR]);
|
||||
mtx_unlock(&sc->sc_mtx);
|
||||
|
||||
/* set a valid "lcr" value */
|
||||
@ -1215,9 +1215,6 @@ uftdi_write_callback(struct usb_xfer *xfer, usb_error_t error)
|
||||
case USB_ST_SETUP:
|
||||
case USB_ST_TRANSFERRED:
|
||||
tr_setup:
|
||||
if (usbd_xfer_get_and_clr_zlp(xfer))
|
||||
break;
|
||||
|
||||
/*
|
||||
* If output packets don't require headers (the common case) we
|
||||
* can just load the buffer up with payload bytes all at once.
|
||||
|
Loading…
Reference in New Issue
Block a user