]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
usb: dwc3: gadget: don't kick transfer all the time
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 26 Mar 2018 10:32:47 +0000 (13:32 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 21 May 2018 07:00:49 +0000 (10:00 +0300)
Instead of constantly calling kick transfer everything some event
shows up, let's just rely on the fact that we send Update Transfer
every time a new request is queued.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c

index e0377c0f895fa3e3a7d8154d396c6340386270eb..d016cedc9f9d2fccd5f803297afe500578ef8664 100644 (file)
@@ -2479,17 +2479,6 @@ static void dwc3_gadget_endpoint_transfer_in_progress(struct dwc3 *dwc,
 
                dwc->u1u2 = 0;
        }
-
-       /*
-        * Our endpoint might get disabled by another thread during
-        * dwc3_gadget_giveback(). If that happens, we're just gonna return 1
-        * early on so DWC3_EP_BUSY flag gets cleared
-        */
-       if (!dep->endpoint.desc)
-               return;
-
-       if (!usb_endpoint_xfer_isoc(dep->endpoint.desc))
-               __dwc3_gadget_kick_transfer(dep);
 }
 
 static void dwc3_endpoint_interrupt(struct dwc3 *dwc,