PERFORCE change 136515 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Fri Feb 29 19:48:33 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=136515
Change 136515 by hselasky at hselasky_laptop001 on 2008/02/29 19:39:22
USB device side bugfix.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/usb_transfer.c#118 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/usb_transfer.c#118 (text+ko) ====
@@ -3113,7 +3113,13 @@
if (pipe == NULL) {
/* nothing to do */
PRINTFN(0, ("Cannot find endpoint\n"));
- return (USBD_ERR_INVAL);
+ /*
+ * Pretend that the clear or set stall request is
+ * successful else some USB host stacks can do
+ * strange things, especially when a control endpoint
+ * stalls.
+ */
+ return (0);
}
et = (pipe->edesc->bmAttributes & UE_XFERTYPE);
More information about the p4-projects
mailing list