diff options
author | Thinh Nguyen <thinh.nguyen@synopsys.com> | 2018-11-15 19:03:27 -0800 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2018-12-05 11:14:15 +0200 |
commit | 6abfa0f5bb7cce98c89e2c28fcea31c17200890e (patch) | |
tree | 790176b78ed31fb51fa11b732678722c7504d9d7 /drivers/usb/dwc3/core.h | |
parent | 6b69753fa0078c5222d6b4aeb5017c5503e0dc8e (diff) | |
download | linux-6abfa0f5bb7cce98c89e2c28fcea31c17200890e.tar.gz linux-6abfa0f5bb7cce98c89e2c28fcea31c17200890e.tar.bz2 linux-6abfa0f5bb7cce98c89e2c28fcea31c17200890e.zip |
usb: dwc3: gadget: Report isoc transfer frame number
Implement the new frame_number API to report the isochronous interval
frame number. This patch checks and reports the interval in which the
isoc transfer was transmitted or received via the Isoc-First TRB SOF
number field.
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
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 15c07b2b5866..df876418cb78 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -784,6 +784,7 @@ enum dwc3_link_state { #define DWC3_TRB_CTRL_ISP_IMI BIT(10) #define DWC3_TRB_CTRL_IOC BIT(11) #define DWC3_TRB_CTRL_SID_SOFN(n) (((n) & 0xffff) << 14) +#define DWC3_TRB_CTRL_GET_SID_SOFN(n) (((n) & (0xffff << 14)) >> 14) #define DWC3_TRBCTL_TYPE(n) ((n) & (0x3f << 4)) #define DWC3_TRBCTL_NORMAL DWC3_TRB_CTRL_TRBCTL(1) |