usb: dwc2: gadget: Fix issue in dwc2_gadget_start_isoc()
authorMinas Harutyunyan <Minas.Harutyunyan@synopsys.com>
Tue, 12 Jun 2018 08:37:29 +0000 (12:37 +0400)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 18 Jun 2018 09:41:00 +0000 (12:41 +0300)
commit1ffba9058737af2ddeebc813faa8ea9b16bc892a
tree0c5ad5c1361ddc63820e4509b44b308861d415e3
parent3ec148ebe3112b40c9a2c0c543bcb0cd1a3abd43
usb: dwc2: gadget: Fix issue in dwc2_gadget_start_isoc()

In case of requests queue is empty reset EP target_frame to
initial value.

This allow restarting ISOC traffic in case when function
driver queued requests with interruptions.

Tested-by: Zeng Tao <prime.zeng@hisilicon.com>
Signed-off-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/gadget.c