]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: dwc3: gadget: check if dep->frame_number is still valid
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 14 Aug 2018 07:42:43 +0000 (10:42 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 27 Nov 2018 13:01:41 +0000 (15:01 +0200)
commitd53701067f048b8b11635e964b6d3bd9a248c622
tree0434638ccb7ca70757161fb969ce004e3e74197c
parent3451f6affaef8c2a0a7a6a5960b86eac9d2ff2f7
usb: dwc3: gadget: check if dep->frame_number is still valid

Gadget driver may take an unbounded amount of time to queue requests
after XferNotReady. This is important for isochronous endpoints which
need to be started for a specific (micro-)frame.

If we fail to start a transfer for isochronous endpoint, let's try
queueing to a future interval and see if that helps. We will stop trying
if we fail a start transfer for 5 intervals in the future.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c