Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Feb 2008 19:48:24 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 136515 for review
Message-ID:  <200802291948.m1TJmO6b092794@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=136515

Change 136515 by hselasky@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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802291948.m1TJmO6b092794>