mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 22:33:39 +00:00
Add a workaround for the USB_PRODUCT_MCT_SITECOM_USB232 device: limit
the bulk out buffer size to 16 bytes. The bulk out endpoint descriptor reports 32 bytes, but if you use this value, data will get dropped. Reviewed/approved by: scottl
This commit is contained in:
parent
eaa69ee9a9
commit
39e674767e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=117308
|
@ -241,7 +241,10 @@ USB_ATTACH(umct)
|
|||
|
||||
if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT) {
|
||||
ucom->sc_bulkout_no = ed->bEndpointAddress;
|
||||
ucom->sc_obufsize = UGETW(ed->wMaxPacketSize);
|
||||
if (uaa->product == USB_PRODUCT_MCT_SITECOM_USB232)
|
||||
ucom->sc_obufsize = 16; /* device is broken */
|
||||
else
|
||||
ucom->sc_obufsize = UGETW(ed->wMaxPacketSize);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue