linux/drivers/usb/dwc3
Felipe Balbi e18b7975c8 usb: dwc3: gadget: don't clear EP_BUSY too early
In case of non-Isochronous transfers, we don't
want to clear DWC3_EP_BUSY flag until XferComplete
event. That's because XferInProgress was only enabled
so we can recycle TRBs and usb_requests quicker, but
there are still other pending requests being transferred.

In order to make sure we don't allow for another StartTransfer
command while the HW is still processing other transfers,
we must keep DWC3_EP_BUSY flag set and this what this patch
does.

Fixes: f3af36511e (usb: dwc3: gadget: always enable IOC on
	bulk/interrupt transfers)
Cc: <stable@vger.kernel.org> # v3.15+
Reported-by: sundeep subbaraya <sundeep.lkml@gmail.com>
Tested-by: sundeep subbaraya <sundeep.lkml@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2015-05-29 10:19:51 -05:00
..
core.c usb: dwc3: add ULPI interface support 2015-05-13 12:06:52 -05:00
core.h usb: dwc3: add ULPI interface support 2015-05-13 12:06:52 -05:00
debug.c usb: dwc3: add tracepoints to aid debugging 2014-09-05 09:55:51 -05:00
debug.h usb: dwc3: add tracepoints to aid debugging 2014-09-05 09:55:51 -05:00
debugfs.c usb: dwc3: switch to GPL v2 only 2013-07-29 13:56:44 +03:00
dwc3-exynos.c usb: dwc3: exynos: Add provision for AXI UpScaler clock on exynos7 2014-11-21 09:07:29 -06:00
dwc3-keystone.c usb: dwc3: keystone: fix error return code 2014-11-20 13:35:46 -06:00
dwc3-omap.c usb: dwc3: omap: call of_platform_depopulate() instead 2015-03-09 10:38:49 -05:00
dwc3-pci.c usb: dwc3: pci: add quirk for Baytrails 2015-05-13 12:06:47 -05:00
dwc3-qcom.c USB: Remove .owner field for driver 2014-09-28 21:55:10 -04:00
dwc3-st.c usb: dwc3: return error code from the most recent call 2014-11-24 08:38:27 -06:00
ep0.c usb: dwc3: gadget: use common is_selfpowered 2015-01-29 10:35:40 -06:00
gadget.c usb: dwc3: gadget: don't clear EP_BUSY too early 2015-05-29 10:19:51 -05:00
gadget.h usb: dwc3: gadget: fix set_halt() bug with pending transfers 2014-10-20 15:58:48 -05:00
host.c usb: dwc3: make LPM configurable in DT 2015-03-10 15:33:33 -05:00
io.h usb: dwc3: add tracepoints to aid debugging 2014-09-05 09:55:51 -05:00
Kconfig usb: dwc3: add ULPI interface support 2015-05-13 12:06:52 -05:00
Makefile usb: dwc3: add ULPI interface support 2015-05-13 12:06:52 -05:00
platform_data.h usb: dwc3: add hsphy_interface property 2015-05-13 12:06:42 -05:00
trace.c usb: dwc3: add tracepoints to aid debugging 2014-09-05 09:55:51 -05:00
trace.h usb: dwc3: trace: add trace logs for core and gadget 2015-01-27 13:56:10 -06:00
ulpi.c usb: dwc3: add ULPI interface support 2015-05-13 12:06:52 -05:00