Commit a861282f authored by Felipe Balbi's avatar Felipe Balbi

usb: dwc3: gadget: don't kick transfer all the time

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: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent fbea935a
...@@ -2479,17 +2479,6 @@ static void dwc3_gadget_endpoint_transfer_in_progress(struct dwc3 *dwc, ...@@ -2479,17 +2479,6 @@ static void dwc3_gadget_endpoint_transfer_in_progress(struct dwc3 *dwc,
dwc->u1u2 = 0; 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, static void dwc3_endpoint_interrupt(struct dwc3 *dwc,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment