From: Cliff Cai <cliff.cai@xxxxxxxxxx> bug[#5269],bug[#5268],bug[#5264]only complete the request when all data has been transfered git-svn-id: svn://localhost/svn/linux-kernel/trunk@6915 526b6c2d-f592-4532-a319-5dd88ccb003d --- drivers/usb/musb/musb_gadget.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index 827a083..f4bf6ac 100644 --- a/drivers/usb/musb/musb_gadget.c +++ b/drivers/usb/musb/musb_gadget.c @@ -499,6 +499,8 @@ void musb_g_tx(struct musb *musb, u8 epnum) | 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); -- 1.6.5.4 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html