diff options
author | Gregory Herrero <gregory.herrero@intel.com> | 2015-11-05 09:41:43 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-12-15 16:12:41 +0100 |
commit | c17b337c1ea4c681595531912585a94f4bd7f8e7 (patch) | |
tree | bfb8eea37f6f66fd9c890991eb635a26fe91d789 /drivers/usb/dwc2/hcd.h | |
parent | usb: dwc2: host: add function to compare frame index (diff) | |
download | linux-c17b337c1ea4c681595531912585a94f4bd7f8e7.tar.xz linux-c17b337c1ea4c681595531912585a94f4bd7f8e7.zip |
usb: dwc2: host: program descriptor for next frame
Isochronous descriptor is currently programmed for the frame
after the last descriptor was programmed.
If the last descriptor frame underrun, then current descriptor must
take this into account and must be programmed on the current frame + 1.
This overrun usually happens when system is loaded and dwc2 can't init
descriptor list in time.
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc2/hcd.h')
-rw-r--r-- | drivers/usb/dwc2/hcd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/dwc2/hcd.h b/drivers/usb/dwc2/hcd.h index a19837f655c9..2e5e9d9a0016 100644 --- a/drivers/usb/dwc2/hcd.h +++ b/drivers/usb/dwc2/hcd.h @@ -340,6 +340,8 @@ struct dwc2_qtd { u8 isoc_split_pos; u16 isoc_frame_index; u16 isoc_split_offset; + u16 isoc_td_last; + u16 isoc_td_first; u32 ssplit_out_xfer_count; u8 error_count; u8 n_desc; |