summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2018-03-29 14:02:41 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2018-05-21 10:00:55 +0300
commit021595963a3c3cb233f614ed600565e1b80ab684 (patch)
tree814652630e0bf9cbd92612309d7bc0ff54589282 /drivers/usb/dwc3
parentd36929538f8b02615260075a9c512bddd75fea4e (diff)
downloadlinux-021595963a3c3cb233f614ed600565e1b80ab684.tar.xz
usb: dwc3: gadget: remove PENDING handling from cleanup_completed
We are trying to kick transfers on Isochronous endpoints in a more controlled manner now. And this ended up rendering this piece of code unnecessary. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r--drivers/usb/dwc3/gadget.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index b0b72e72bbac..7a9586631895 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -2360,20 +2360,6 @@ static void dwc3_gadget_ep_cleanup_completed_requests(struct dwc3_ep *dep,
if (ret)
break;
}
-
- /*
- * Our endpoint might get disabled by another thread during
- * dwc3_gadget_giveback(). If that happens, we're just gonna return 1
- * early.
- */
- if (!dep->endpoint.desc)
- return;
-
- if (usb_endpoint_xfer_isoc(dep->endpoint.desc) &&
- list_empty(&dep->started_list) &&
- list_empty(&dep->pending_list)) {
- dep->flags = DWC3_EP_PENDING_REQUEST;
- }
}
static void dwc3_gadget_endpoint_frame_from_event(struct dwc3_ep *dep,