UPSTREAM: usb: dwc2: host: program descriptor for next frame
authorGregory Herrero <gregory.herrero@intel.com>
Thu, 5 Nov 2015 08:41:43 +0000 (09:41 +0100)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 3 Jan 2017 09:50:20 +0000 (17:50 +0800)
commit72e5db7be823ecdccb268e3aba48657fbfab8e37
tree61bd690eddbdf2fc59246d9d5cfc4c6e7cabf76d
parent4932f9d4cea6fb382e9554c56de533c042f6b7f0
UPSTREAM: 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.

Change-Id: Ic1a50ef6c3325cbf171cc370e43569c8a3b7bd69
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit c17b337c1ea4c681595531912585a94f4bd7f8e7)
drivers/usb/dwc2/hcd.h
drivers/usb/dwc2/hcd_ddma.c