Title: [6915] trunk/drivers/usb/musb/musb_gadget.c: bug[#5269],bug[#5268],bug[#5264]only complete the request when all data has been transfered
Revision
6915
Author
cliff
Date
2009-07-03 01:32:02 -0500 (Fri, 03 Jul 2009)

Log Message

bug[#5269],bug[#5268],bug[#5264]only complete the request when all data has been transfered

Modified Paths

Diff

Modified: trunk/drivers/usb/musb/musb_gadget.c (6914 => 6915)


--- trunk/drivers/usb/musb/musb_gadget.c	2009-07-03 06:29:35 UTC (rev 6914)
+++ trunk/drivers/usb/musb/musb_gadget.c	2009-07-03 06:32:02 UTC (rev 6915)
@@ -519,7 +519,8 @@
 							| MUSB_TXCSR_TXPKTRDY);
 					request->zero = 0;
 				}
-
+                                if (request->actual < request->length)
+                                    break;
 				/* ... or if not, then complete it */
 				musb_g_giveback(musb_ep, request, 0);
 
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to