From: Sebastian Andrzej Siewior Date: Mon, 22 Aug 2011 16:29:13 +0000 (+0200) Subject: usb: dwc3: gaget: clear DWC3_EP_WILL_SHUTDOWN bit X-Git-Tag: MMI-PSA29.97-13-9~18248^2~148^2~43 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0156cf8603b86c949d02aa315684b4c677e66638;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index ebe6bbcfeb67..2ee6714bda4b 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/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; } }