]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
usb: dwc3: gadget: remove PENDING handling from cleanup_completed
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 29 Mar 2018 11:02:41 +0000 (14:02 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 21 May 2018 07:00:55 +0000 (10:00 +0300)
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>
drivers/usb/dwc3/gadget.c

index b0b72e72bbac86b39162c838a15e9d6885387e47..7a9586631895ea960310d3bd4b2edfbfef9985b3 100644 (file)
@@ -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,