android_kernel_oneplus_msm8998/drivers/usb/dwc3
Thinh Nguyen 2421986b04 usb: dwc3: gadget: Set maxpacket size for ep0 IN
commit 6180026341e852a250e1f97ebdcf71684a3c81b9 upstream.

There are 2 control endpoint structures for DWC3. However, the driver
only updates the OUT direction control endpoint structure during
ConnectDone event. DWC3 driver needs to update the endpoint max packet
size for control IN endpoint as well. If the max packet size is not
properly set, then the driver will incorrectly calculate the data
transfer size and fail to send ZLP for HS/FS 3-stage control read
transfer.

The fix is simply to update the max packet size for the ep0 IN direction
during ConnectDone event.

Cc: stable@vger.kernel.org
Fixes: 72246da40f ("usb: Introduce DesignWare USB3 DRD Driver")
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-28 10:17:23 +01:00
..
core.c
core.h usb: dwc3: core: avoid Overflow events 2017-01-12 11:22:44 +01:00
debug.c
debug.h
debugfs.c
dwc3-exynos.c usb: dwc3: exynos fix axius clock error path to do cleanup 2017-06-26 07:13:10 +02:00
dwc3-keystone.c
dwc3-omap.c
dwc3-pci.c usb: dwc3: pci: add Intel Gemini Lake PCI ID 2017-01-12 11:22:47 +01:00
dwc3-qcom.c
dwc3-st.c usb: dwc3: replace %p with %pK 2017-07-15 11:57:45 +02:00
ep0.c usb: dwc3: ep0: explicitly call dwc3_ep0_prepare_one_trb() 2017-01-12 11:22:48 +01:00
gadget.c usb: dwc3: gadget: Set maxpacket size for ep0 IN 2018-02-28 10:17:23 +01:00
gadget.h usb: dwc3: gadget: make Set Endpoint Configuration macros safe 2017-03-18 19:09:57 +08:00
host.c
io.h
Kconfig
Makefile
platform_data.h
trace.c
trace.h
ulpi.c