linux/drivers/usb/dwc3
John Youn 361572b5f7 usb: dwc3: gadget: Handle TRB index 0 when full or empty
If the trb->enqueue == trb->dequeue, then it could be full or empty.
This could also happen at TRB index 0, so modify the check to handle
that condition. At index 0, the previous TRB is the one just before the
link TRB.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2016-06-20 12:32:45 +03:00
..
core.c usb: dwc3: implement runtime PM 2016-06-20 12:32:38 +03:00
core.h usb: dwc3: gadget: add a per-endpoint request queue lock 2016-06-20 12:32:38 +03:00
debug.c usb: dwc3: add tracepoints to aid debugging 2014-09-05 09:55:51 -05:00
debug.h usb: dwc3: gadget: improve gcmd trace 2016-06-20 12:32:41 +03:00
debugfs.c usb: dwc3: gadget: add a pointer to endpoint registers 2016-06-20 12:32:35 +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: Remove impossible check for of_clk_get_parent_count() < 0 2016-02-26 16:01:32 -08:00
dwc3-omap.c usb: changes for v4.7 merge window 2016-04-28 09:32:39 -07:00
dwc3-pci.c usb: dwc3: pci: add Power Management dummy hooks 2016-06-20 12:32:38 +03:00
dwc3-st.c usb: dwc3: st: Fix USB_DR_MODE_PERIPHERAL configuration. 2016-05-31 11:24:31 +03:00
ep0.c usb: dwc3: ep0: Use the correct type for SET_SEL data 2016-06-20 12:32:42 +03:00
gadget.c usb: dwc3: gadget: Handle TRB index 0 when full or empty 2016-06-20 12:32:45 +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: make LPM configurable in DT 2015-03-10 15:33:33 -05: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
platform_data.h usb: dwc3: add disable receiver detection in P3 quirk 2016-04-18 15:23:44 +03:00
trace.c usb: dwc3: add tracepoints to aid debugging 2014-09-05 09:55:51 -05:00
trace.h usb: dwc3: Endianness issue on dwc3_log_ctrl 2016-06-20 12:32:43 +03:00
ulpi.c usb: dwc3: add ULPI interface support 2015-05-13 12:06:52 -05:00