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.ba...@linux.intel.com>
---
 drivers/usb/dwc3/gadget.c | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 040c4fea2700..e4bd902a1e76 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -2317,7 +2317,7 @@ static void 
dwc3_gadget_ep_cleanup_completed_requests(struct dwc3_ep *dep,
 
                if ((req->request.actual < length) && req->num_pending_sgs) {
                        __dwc3_gadget_kick_transfer(dep);
-                       return;
+                       break;
                }
 
                dwc3_gadget_giveback(dep, req, status);
@@ -2325,20 +2325,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,
-- 
2.16.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to