usb: dwc3: gadget: fix pending isoc handling
authorPratyush Anand <pratyush.anand@st.com>
Thu, 30 Aug 2012 06:51:43 +0000 (12:21 +0530)
committerFelipe Balbi <balbi@ti.com>
Thu, 6 Sep 2012 16:52:30 +0000 (19:52 +0300)
commitf4a53c55117b82e895ec98b1765c9d66940377fc
treef923ce881bc69fb2ed31a565551f863b280d5baa
parent77975eec149506e457e6abe2ce43259895a9a16e
usb: dwc3: gadget: fix pending isoc handling

If xfernotready is received and there is no request in request_list then
REQUEST_PENDING flag must be set, so that next request in ep queue is executed.

In case of isoc transfer, if xfernotready is already elapsed and even first
request has not been queued to request_list, then issue END TRANSFER, so that
you can receive xfernotready again and can have notion of current microframe.

Signed-off-by: Pratyush Anand <pratyush.anand@st.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c