Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8b08404 authored by Hemant Kumar's avatar Hemant Kumar
Browse files

Revert "usb: dwc3: gadget: start requests as soon as they come"



This reverts commit 1d6a3918 ("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: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 3ba0c3fd
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -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:
	 *