summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2011-08-30 15:54:53 +0300
committerFelipe Balbi <balbi@ti.com>2011-09-09 13:02:16 +0300
commit76cb323f80ac32833109e2c089842be2b99d8d2b (patch)
tree0a9363e7a1f33487ea60e60ec38df794ee225b99 /drivers/usb/dwc3
parentb673cf3002bfded05d68c8bad394ee68f5e8c515 (diff)
downloadop-kernel-dev-76cb323f80ac32833109e2c089842be2b99d8d2b.zip
op-kernel-dev-76cb323f80ac32833109e2c089842be2b99d8d2b.tar.gz
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 6745d14..618a29e 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);
}
OpenPOWER on IntegriCloud