Commit 00d0a448 authored by Peter Chen's avatar Peter Chen Committed by Neena Busireddy
Browse files

MLK-10088-1 usb: chipidea: udc: return immediately if re-enable non-empty endpoint



Some gadget driver (like uac1) will try to enable endpoint again even
the ep is not empty, it will cause the ep reset again and may affect
the dTD list which has already queued.

It returns -EBUSY immediately, and indicate the endpoint is in use.
In this way, the ep's behavior will not be affected, and the gadget
driver is also notified.

Cc: Xuebing Wang <xbing6@gmail.com>
Signed-off-by: default avatarPeter Chen <peter.chen@freescale.com>
parent a393af01
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment