projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd178f2
)
usb: dwc3: reset pending status flag in error case
author
Sebastian Andrzej Siewior
<bigeasy@linutronix.de>
Tue, 18 Oct 2011 17:13:28 +0000
(19:13 +0200)
committer
Felipe Balbi
<balbi@ti.com>
Mon, 12 Dec 2011 09:48:20 +0000
(11:48 +0200)
If we stall and restart we have to reset also this flag to 0 as there is
nothing pending anymore.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/ep0.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/dwc3/ep0.c
b/drivers/usb/dwc3/ep0.c
index 36482f45b3b1f15c2fc986e3d3f801c1726342f2..900627cf860385b83dc40d266c898866a015b19a 100644
(file)
--- a/
drivers/usb/dwc3/ep0.c
+++ b/
drivers/usb/dwc3/ep0.c
@@
-224,6
+224,7
@@
static void dwc3_ep0_stall_and_restart(struct dwc3 *dwc)
dwc3_gadget_giveback(dep, req, -ECONNRESET);
}
+ dwc->ep0_status_pending = 0;
dwc->ep0state = EP0_SETUP_PHASE;
dwc3_ep0_out_start(dwc);
}