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

Commit 95afc394 authored by Vijayavardhan Vennapusa's avatar Vijayavardhan Vennapusa Committed by Gerrit - the friendly Code Review server
Browse files

USB: ci13xxx_udc: Fail request queuing for BAM endpoints in FS mode



BAM2BAM mode is not designed to work in Full speed mode and USB HW
behaviour is unknown in case request is queued to BAM2BAM endpoint.
Hence Fail request queueing for BAM endpoints in Full speed mode
as per recommendation from hardware programming guide.

CRs-Fixed: 884453
Change-Id: I29bcdde47bda63c5de15ef8151189888c9cda8da
Signed-off-by: default avatarVijayavardhan Vennapusa <vvreddy@codeaurora.org>
parent b91d6eb9
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3203,6 +3203,12 @@ static int ep_queue(struct usb_ep *ep, struct usb_request *req,
		}
	}

	if (ep->endless && udc->gadget.speed == USB_SPEED_FULL) {
		err("Queueing endless req is not supported for FS");
		retval = -EINVAL;
		goto done;
	}

	/* first nuke then test link, e.g. previous status has not sent */
	if (!list_empty(&mReq->queue)) {
		retval = -EBUSY;