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)
committerFelipe Balbi <balbi@ti.com>
Tue, 15 Dec 2015 15:12:41 +0000 (09:12 -0600)
commitc17b337c1ea4c681595531912585a94f4bd7f8e7
treebfb8eea37f6f66fd9c890991eb635a26fe91d789
parentb9392d9920fdce50abbe4af758cd1a24b922c81c
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>
drivers/usb/dwc2/hcd.h
drivers/usb/dwc2/hcd_ddma.c