]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc2: gadget: Add EP disabled interrupt handler
authorVardan Mikayelyan <mvardan@synopsys.com>
Thu, 26 May 2016 01:07:19 +0000 (18:07 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 21 Jun 2016 07:50:09 +0000 (10:50 +0300)
commit5342ae20d49ed336edea342dbd362e08bb6f0d90
treec9355acd75ea12538e0c9731d832d72a2a747415
parent4d84e16efef4dbc35d66812f21af2a0fa8299426
usb: dwc2: gadget: Add EP disabled interrupt handler

Reimplemented EP disabled interrupt handler and moved to
corresponding function.

This interrupt indicates that the endpoint has been disabled per
the application's request.

For IN endpoints flushes txfifo, in case of BULK clears DCTL_CGNPINNAK,
in case of ISOC completes current request.

For ISOC-OUT endpoints completes expired requests. If there is
remaining request starts it. This is the part of ISOC-OUT transfer
drop flow. When ISOC-OUT transfer expired we must disable ep to drop
ongoing transfer.

Tested-by: John Keeping <john@metanate.com>
Reviewed-by: Vahram Aharonyan <vahrama@synopsys.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