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)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 21 Jun 2016 07:49:47 +0000 (10:49 +0300)
commit41cc4cd2716fa6d18a1a09d740ea075adecfa7dd
treecfd6eeff6da4755557c88465a8510e6ead0add4f
parent326015887b6a1321fd61f7a16816241ad841a03c
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.

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>
drivers/usb/dwc2/gadget.c