patch-2.3.24 linux/drivers/usb/uhci.c

Next file: linux/drivers/usb/usb-serial.c
Previous file: linux/drivers/usb/ohci-hcd.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.23/linux/drivers/usb/uhci.c linux/drivers/usb/uhci.c
@@ -154,7 +154,10 @@
 			actlength = uhci_actual_length(tmp->status);
 			if (rval)
 				*rval += actlength;
-			if (explength != actlength) {
+			/* This check is bogus, at least for acm. It
+                           always expects 64, but gets as many bytes
+                           as available (typically 1) -- pavel */
+			if (0 && (explength != actlength)) {
 				/* Reset the data toggle on error. */
 				if (debug || uhci_debug)
 					printk(KERN_DEBUG "Set toggle from %p rval %ld%c for status=%x to %d, exp=%d, act=%d\n",

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)