diff options
author | Felipe Balbi <felipe.balbi@linux.intel.com> | 2018-08-14 10:42:43 +0300 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2018-11-27 15:01:41 +0200 |
commit | d53701067f048b8b11635e964b6d3bd9a248c622 (patch) | |
tree | 0434638ccb7ca70757161fb969ce004e3e74197c /drivers/usb/dwc3/core.h | |
parent | 3451f6affaef8c2a0a7a6a5960b86eac9d2ff2f7 (diff) | |
download | linux-d53701067f048b8b11635e964b6d3bd9a248c622.tar.gz linux-d53701067f048b8b11635e964b6d3bd9a248c622.tar.bz2 linux-d53701067f048b8b11635e964b6d3bd9a248c622.zip |
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>
Diffstat (limited to 'drivers/usb/dwc3/core.h')
-rw-r--r-- | drivers/usb/dwc3/core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index 58f4aa5e3443..15c07b2b5866 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -37,6 +37,7 @@ #define DWC3_EP0_SETUP_SIZE 512 #define DWC3_ENDPOINTS_NUM 32 #define DWC3_XHCI_RESOURCES_NUM 2 +#define DWC3_ISOC_MAX_RETRIES 5 #define DWC3_SCRATCHBUF_SIZE 4096 /* each buffer is assumed to be 4KiB */ #define DWC3_EVENT_BUFFERS_SIZE 4096 |