From: Felipe Balbi Date: Mon, 30 May 2016 10:41:22 +0000 (+0300) Subject: UPSTREAM: usb: dwc3: gadget: start Bulk endpoints more frequently X-Git-Tag: firefly_0821_release~1784 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=796b829ebb9421c85c01878ea040055d76b7bbd0;p=firefly-linux-kernel-4.4.55.git UPSTREAM: usb: dwc3: gadget: start Bulk endpoints more frequently Now we can try to issue Update Transfer every time gadget driver queues a new request. This will make sure we keep controller's queue busy for as long as possible. Change-Id: Id0418f2b4930e442d3bae7be87270100c0b347f5 Signed-off-by: Felipe Balbi Signed-off-by: Wu Liang feng (cherry picked from commit ba62c09d5cc240e55eb39e92d88f1036bb1d9221) --- diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 8233716efb36..178cf6581cfe 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -1144,8 +1144,7 @@ static int __dwc3_gadget_ep_queue(struct dwc3_ep *dep, struct dwc3_request *req) * little bit faster. */ if (!usb_endpoint_xfer_isoc(dep->endpoint.desc) && - !usb_endpoint_xfer_int(dep->endpoint.desc) && - !(dep->flags & DWC3_EP_BUSY)) { + !usb_endpoint_xfer_int(dep->endpoint.desc)) { ret = __dwc3_gadget_kick_transfer(dep, 0); goto out; }