From b8b08404dbecfbbaf2346f8fb891dc591b6dd321 Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Mon, 12 Sep 2016 19:31:10 -0700 Subject: 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 --- drivers/usb/dwc3/gadget.c | 14 -------------- 1 file changed, 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 @@ -1232,20 +1232,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: * -- cgit v1.2.3