linux/drivers/usb/dwc3
Thinh Nguyen f035d139ff usb: dwc3: ep0: Reset TRB counter for ep0 IN
DWC3 tracks TRB counter for each ep0 direction separately. In control
read transfer completion handler, the driver needs to reset the TRB
enqueue counter for ep0 IN direction. Currently the driver only resets
the TRB counter for control OUT endpoint. Check for the data direction
and properly reset the TRB counter from correct control endpoint.

Cc: stable@vger.kernel.org
Fixes: c2da2ff006 ("usb: dwc3: ep0: don't use ep0in for transfers")
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2018-02-12 10:48:39 +02:00
..
core.c phy: for 4.16 2018-01-08 14:17:59 +01:00
core.h usb: dwc3: Allow disabling of metastability workaround 2017-12-11 12:36:53 +02:00
debug.h usb: dwc3: debug: decode a few more features 2017-12-11 12:36:48 +02:00
debugfs.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
drd.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
dwc3-exynos.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
dwc3-keystone.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
dwc3-of-simple.c usb: dwc3: of-simple: fix oops by unbalanced clk disable call 2018-02-12 10:41:45 +02:00
dwc3-omap.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
dwc3-pci.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
dwc3-st.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
ep0.c usb: dwc3: ep0: Reset TRB counter for ep0 IN 2018-02-12 10:48:39 +02:00
gadget.c usb: dwc3: gadget: Set maxpacket size for ep0 IN 2018-02-12 10:48:36 +02:00
gadget.h USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
host.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
io.h USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
Kconfig usb: changes for v4.12 2017-04-11 16:47:26 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
trace.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
trace.h usb: dwc3: Make sparse a bit happier 2017-12-11 12:36:49 +02:00
ulpi.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00