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:
Bill Paul 2003-07-07 18:01:23 +00:00
parent eaa69ee9a9
commit 39e674767e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=117308

View file

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