UPSTREAM: usb: dwc2: gadget: Add dwc2_gadget_start_next_request function
authorVardan Mikayelyan <mvardan@synopsys.com>
Thu, 26 May 2016 01:07:12 +0000 (18:07 -0700)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 3 Jan 2017 10:48:46 +0000 (18:48 +0800)
commitd71829feffb167566024c75b50e58471a20ed9bc
tree606c50a31aceb534c27cf1c9cd16f539d80d6d27
parentad618f0917d435e4574b3bb7c7221b8f2c8443ca
UPSTREAM: usb: dwc2: gadget: Add dwc2_gadget_start_next_request function

Replaced repeating code with function call.

Starts next request from ep queue.
If queue is empty and ep is isoc
-In case of OUT-EP unmasks OUTTKNEPDIS.

OUTTKNEPDIS is masked in it's handler, so we need to unmask it here
to be able to do resynchronization.

Change-Id: Ib9d72c0ef728e145ac959218386c333f674ae0e2
Tested-by: John Keeping <john@metanate.com>
Signed-off-by: Vardan Mikayelyan <mvardan@synopsys.com>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit 41cc4cd2716fa6d18a1a09d740ea075adecfa7dd)
drivers/usb/dwc2/gadget.c