OSDN Git Service

USB: dwc3: Fix issues in isochronous endpoint handling
authorVijayavardhan Vennapusa <vvreddy@codeaurora.org>
Wed, 30 Jan 2013 12:05:45 +0000 (17:35 +0530)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:06:38 +0000 (11:06 -0700)
commit4083e89ea0fd90e9bfa348ede1c223150cbad6c3
tree0068fbaabdf24bf316da2cd0de73ea220511f89a
parentdef08da7f54f275181e7b4f86acdc39ab31cdd42
USB: dwc3: Fix issues in isochronous endpoint handling

If there are no requests queued by function driver when
XFRNRDY interrupt is recieved, pending flag will be set.
Then if function driver queues request, don't queue ENDTXFR
command and wait for XFRNRDY interrupt.

START TRANSFER command will fail if the interval for which
requests are being queued is already expired. Handle this
case by queueing ENDXFER command and waiting till recieves
XFRNRDY interrupt.

Change-Id: I9498be3967e0f80b05cf0830affe5463f07e2976
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c
drivers/usb/dwc3/gadget.h