diff options
author | Felipe Balbi <balbi@ti.com> | 2015-12-01 00:24:29 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-12-01 00:35:14 +0300 |
commit | 62e345ae5b6ed977b02c24d1eaeaece062f9fb17 (patch) | |
tree | d575cc4341fe3d9fb66c2b124411534e182b5732 /drivers/usb | |
parent | f74875dc36135ebae82a8e005f4b7f52289d2c40 (diff) | |
download | linux-62e345ae5b6ed977b02c24d1eaeaece062f9fb17.tar.xz |
usb: dwc3: gadget: don't prestart interrupt endpoints
Because interrupt endpoints usually transmit such
small amounts of data, it seems pointless to prestart
transfers and try to get speed improvements. This
patch also sorts out a problem with CDC ECM function
where its notification endpoint gets stuck in busy
state and we continuously issue Update Transfer
commands.
Fixes: 8a1a9c9e4503 ("usb: dwc3: gadget: start transfer on XFER_COMPLETE")
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index e24a01cc98df..a58376fd65fe 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -1078,6 +1078,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)) { ret = __dwc3_gadget_kick_transfer(dep, 0, true); goto out; |