]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7ceba7f31ae2a8b8804b5292fc8c68a2107bbc51
treecfd6eeff6da4755557c88465a8510e6ead0add4f
parent783e81ad3a456d2ec1b5f6320280427e96eb3216
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