Browse Source

usb: dwc3: gaget: clear DWC3_EP_WILL_SHUTDOWN bit

Without this patch we won't clear that bit and instead will
clear all other bits on our endpoint flag.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Sebastian Andrzej Siewior 14 years ago
parent
commit
0156cf8603
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/usb/dwc3/gadget.c

+ 1 - 1
drivers/usb/dwc3/gadget.c

@@ -1423,7 +1423,7 @@ static void dwc3_process_ep_cmd_complete(struct dwc3_ep *dep,
 			req = next_request(&dep->req_queued);
 			dwc3_gadget_giveback(dep, req, -ESHUTDOWN);
 		}
-		dep->flags &= DWC3_EP_WILL_SHUTDOWN;
+		dep->flags &= ~DWC3_EP_WILL_SHUTDOWN;
 	}
 }