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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:08:57 +0000 (13:08 +0200)
commit7b2dc4515f030658f9cae3f1d7e294ab8238e39f
treedcb48e22e6c0f60afa920fca4e66572d58918950
parent3572fd055e69a583eff9d7fd5cb8a7736ed27d65
usb: dwc2: gadget: Fix issue in dwc2_gadget_start_isoc()

[ Upstream commit 1ffba9058737af2ddeebc813faa8ea9b16bc892a ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/gadget.c