summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorHemant Kumar <hemantk@codeaurora.org>2016-09-12 19:31:10 -0700
committerHemant Kumar <hemantk@codeaurora.org>2016-09-12 19:56:13 -0700
commitb8b08404dbecfbbaf2346f8fb891dc591b6dd321 (patch)
tree266e4ddfd048736a7fc552173b33b689f5d82ccf /drivers/usb
parent3ba0c3fd0b365fb064d810c1b4c3d6fa3e5af1d6 (diff)
Revert "usb: dwc3: gadget: start requests as soon as they come"
This reverts commit 1d6a39186b37b6f5097f9cdee8fcbfc24d231428 ("usb: dwc3: gadget: start requests as soon as they come"). Queuing request as soon as they come without waiting for XFER_NOT_READY event resulting into usb transfer stall. Change-Id: Ic08b2da2983a520a07a0b225254c068d499a67cc Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Diffstat (limited to 'drivers/usb')
-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 669181539aea..4ad994972b19 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -1233,20 +1233,6 @@ static int __dwc3_gadget_ep_queue(struct dwc3_ep *dep, struct dwc3_request *req)
list_add_tail(&req->list, &dep->request_list);
/*
- * If there are no pending requests and the endpoint isn't already
- * busy, we will just start the request straight away.
- *
- * This will save one IRQ (XFER_NOT_READY) and possibly make it a
- * little bit faster.
- */
- if (!usb_endpoint_xfer_isoc(dep->endpoint.desc) &&
- !usb_endpoint_xfer_int(dep->endpoint.desc) &&
- !(dep->flags & DWC3_EP_BUSY)) {
- ret = __dwc3_gadget_kick_transfer(dep, 0, true);
- goto out;
- }
-
- /*
* There are a few special cases:
*
* 1. XferNotReady with empty list of requests. We need to kick the