usb: dwc3: gaget: clear DWC3_EP_WILL_SHUTDOWN bit
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 22 Aug 2011 16:29:13 +0000 (18:29 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 9 Sep 2011 10:01:57 +0000 (13:01 +0300)
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>
drivers/usb/dwc3/gadget.c

index ebe6bbcfeb674f8e4ea162e66adc5308498eb084..2ee6714bda4be89c8bb78ece8248ad89807fbd31 100644 (file)
@@ -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;
        }
 }