summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2011-08-30 14:54:53 +0200
committerFelipe Balbi <balbi@ti.com>2011-09-09 12:02:16 +0200
commit76cb323f80ac32833109e2c089842be2b99d8d2b (patch)
tree0a9363e7a1f33487ea60e60ec38df794ee225b99 /drivers/usb/dwc3
parentusb: dwc3: ep0: fix Get Status handling (diff)
downloadlinux-76cb323f80ac32833109e2c089842be2b99d8d2b.tar.xz
linux-76cb323f80ac32833109e2c089842be2b99d8d2b.zip
usb: dwc3: ep0: clear all EP0 flags
when we're going to issue Set Stall command, we should clear DWC3_EP_STALL flag, but also we should clear BUSY, HALTED and all others. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r--drivers/usb/dwc3/ep0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c
index 6745d145775d..618a29e11323 100644
--- a/drivers/usb/dwc3/ep0.c
+++ b/drivers/usb/dwc3/ep0.c
@@ -216,7 +216,7 @@ static void dwc3_ep0_stall_and_restart(struct dwc3 *dwc)
{
/* stall is always issued on EP0 */
__dwc3_gadget_ep_set_halt(dwc->eps[0], 1);
- dwc->eps[0]->flags &= ~DWC3_EP_STALL;
+ dwc->eps[0]->flags = DWC3_EP_ENABLED;
dwc->ep0state = EP0_SETUP_PHASE;
dwc3_ep0_out_start(dwc);
}