summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2011-10-18 21:13:28 +0400
committerFelipe Balbi <balbi@ti.com>2011-12-12 13:48:20 +0400
commit0cc7a519c424c8f07d5ef5e3928b7a07446c5303 (patch)
tree6d54ca84764cc785355e085993a13803ebdd1b87 /drivers/usb
parentbd178f2d62e8e2feb6b544c08d7d1dd92254201d (diff)
downloadlinux-0cc7a519c424c8f07d5ef5e3928b7a07446c5303.tar.xz
usb: dwc3: reset pending status flag in error case
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/dwc3/ep0.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c
index 36482f45b3b1..900627cf8603 100644
--- 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);
}