diff options
author | Felipe Balbi <balbi@ti.com> | 2011-08-30 12:54:53 (GMT) |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-09-09 10:02:16 (GMT) |
commit | 76cb323f80ac32833109e2c089842be2b99d8d2b (patch) | |
tree | 0a9363e7a1f33487ea60e60ec38df794ee225b99 /drivers/usb/dwc3 | |
parent | b673cf3002bfded05d68c8bad394ee68f5e8c515 (diff) | |
download | linux-76cb323f80ac32833109e2c089842be2b99d8d2b.tar.xz |
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.c | 2 |
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); } |