diff options
author | Felipe Balbi <felipe.balbi@linux.intel.com> | 2018-03-29 12:49:28 +0300 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2018-05-21 10:00:53 +0300 |
commit | 6d8a019614f3a7630e0a2c1be4bf1cfc23acf56e (patch) | |
tree | 7fb62812df076b56d4382408e1bcd7e2977b04c9 /drivers/usb/dwc3/core.h | |
parent | 58f0218a271d297487aff56b0982a032c8ea35b3 (diff) | |
download | linux-6d8a019614f3a7630e0a2c1be4bf1cfc23acf56e.tar.gz linux-6d8a019614f3a7630e0a2c1be4bf1cfc23acf56e.tar.bz2 linux-6d8a019614f3a7630e0a2c1be4bf1cfc23acf56e.zip |
usb: dwc3: gadget: check for Missed Isoc from event status
In case we get an event with status set to Missed Isoc, this means we
have missed an isochronous interval and should issue End Transfer
command and wait for the following XferNotReady.
Let's do that early, rather than late.
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 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index 310b6435673c..499e08636ce4 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -1204,11 +1204,12 @@ struct dwc3_event_depevt { /* Within XferNotReady */ #define DEPEVT_STATUS_TRANSFER_ACTIVE BIT(3) -/* Within XferComplete */ +/* Within XferComplete or XferInProgress */ #define DEPEVT_STATUS_BUSERR BIT(0) #define DEPEVT_STATUS_SHORT BIT(1) #define DEPEVT_STATUS_IOC BIT(2) -#define DEPEVT_STATUS_LST BIT(3) +#define DEPEVT_STATUS_LST BIT(3) /* XferComplete */ +#define DEPEVT_STATUS_MISSED_ISOC BIT(3) /* XferInProgress */ /* Stream event only */ #define DEPEVT_STREAMEVT_FOUND 1 |