This is a note to let you know that I've just added the patch titled
usb: dwc3: ep0: increment "actual" on bounced ep0 case
to the 3.3-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
usb-dwc3-ep0-increment-actual-on-bounced-ep0-case.patch
and it can be found in the queue-3.3 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From cd423dd3634a5232a3019eb372b144619a61cd16 Mon Sep 17 00:00:00 2001
From: Felipe Balbi <[email protected]>
Date: Wed, 21 Mar 2012 11:44:00 +0200
Subject: usb: dwc3: ep0: increment "actual" on bounced ep0 case
From: Felipe Balbi <[email protected]>
commit cd423dd3634a5232a3019eb372b144619a61cd16 upstream.
due to a HW limitation we have a bounce buffer for ep0
out transfers which are not aligned with MaxPacketSize.
On such case we were not increment r->actual as we should.
This patch fixes that mistake.
Signed-off-by: Felipe Balbi <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
drivers/usb/dwc3/ep0.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/drivers/usb/dwc3/ep0.c
+++ b/drivers/usb/dwc3/ep0.c
@@ -583,9 +583,10 @@ static void dwc3_ep0_complete_data(struc
dwc->ep0_bounced = false;
} else {
transferred = ur->length - trb.length;
- ur->actual += transferred;
}
+ ur->actual += transferred;
+
if ((epnum & 1) && ur->actual < ur->length) {
/* for some reason we did not get everything out */
Patches currently in stable-queue which might be from [email protected] are
queue-3.3/usb-gadget-eliminate-null-pointer-dereference-bugfix.patch
queue-3.3/usb-gadget-udc-core-fix-asymmetric-calls-in-remove_driver.patch
queue-3.3/usb-dwc3-ep0-increment-actual-on-bounced-ep0-case.patch
queue-3.3/usb-musb-omap-fix-crash-when-musb-glue-omap-gets-initialized.patch
queue-3.3/usb-gadget-udc-core-stop-udc-on-device-initiated-disconnect.patch
queue-3.3/usb-musb-omap-fix-the-error-check-for-pm_runtime_get_sync.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html