linux/drivers/usb/dwc3
John Youn 9d7aba7786 Revert "usb: dwc3: gadget: always decrement by 1"
This reverts commit 6f8245b4e3 ("usb: dwc3: gadget: always decrement
by 1").

We can't always decrement this value.

We should decrement only if the calculation of free slots results in a
LINK TRB being among one of the free slots (dequeue < enqueue).

Otherwise, if the LINK TRB is not among the free slots then it should
not be decremented.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2016-09-05 13:39:23 +03:00
..
core.c usb: dwc3: core: allow device to runtime_suspend several times 2016-08-22 10:45:11 +03:00
core.h usb: dwc3: gadget: keep track of allocated and queued reqs 2016-06-20 12:32:49 +03:00
debug.c usb: dwc3: add tracepoints to aid debugging 2014-09-05 09:55:51 -05:00
debug.h usb: dwc3: debug: fix ep name on trace output 2016-08-25 10:36:25 +03:00
debugfs.c usb: dwc3: add DWC3_GUCTL1 reg for debug 2016-06-20 12:32:46 +03:00
dwc3-exynos.c usb: dwc3: exynos: Fix deferred probing storm. 2016-05-31 11:12:42 +03:00
dwc3-keystone.c usb: dwc3: keystone: drop dma_mask configuration 2016-04-06 16:36:01 +03:00
dwc3-of-simple.c usb: dwc3: fix missing platform_set_drvdata() in dwc3_of_simple_probe() 2016-08-11 15:09:45 +03:00
dwc3-omap.c usb: dwc3: omap: Pass VBUS and ID events transparently 2016-06-20 12:32:47 +03:00
dwc3-pci.c usb: dwc3: pci: runtime_resume child device 2016-08-22 10:45:10 +03:00
dwc3-st.c - Final patches fixing Reset API change 2016-07-01 15:17:16 -07:00
ep0.c usb: dwc3: remove trailing newline from dwc3_trace 2016-06-20 12:32:48 +03:00
gadget.c Revert "usb: dwc3: gadget: always decrement by 1" 2016-09-05 13:39:23 +03:00
gadget.h usb: dwc3: gadget: add a pointer to endpoint registers 2016-06-20 12:32:35 +03:00
host.c usb: dwc3: host: Fix broken XHCI host 2016-07-01 08:59:44 -07:00
io.h usb: dwc3: gadget: add a pointer to endpoint registers 2016-06-20 12:32:35 +03:00
Kconfig usb: dwc3: remove dwc3-qcom in favor of dwc3-of-simple 2015-12-15 09:12:41 -06:00
Makefile usb: dwc3: remove dwc3-qcom in favor of dwc3-of-simple 2015-12-15 09:12:41 -06:00
trace.c usb: dwc3: add tracepoints to aid debugging 2014-09-05 09:55:51 -05:00
trace.h usb: dwc3: gadget: keep track of allocated and queued reqs 2016-06-20 12:32:49 +03:00
ulpi.c usb: dwc3: add ULPI interface support 2015-05-13 12:06:52 -05:00