linux/drivers/usb/dwc2
Minas Harutyunyan 2fb431e69a usb: dwc2: Fix INTR OUT transfers in DDMA mode.
[ Upstream commit b2c586eb07 ]

In DDMA mode if INTR OUT transfers mps not multiple of 4 then single packet
corresponds to single descriptor.

Descriptor limit set to mps and desc chain limit set to mps *
MAX_DMA_DESC_NUM_GENERIC. On that descriptors complete, to calculate
transfer size should be considered correction value for each descriptor.

In start request function, if "continue" is true then dma buffer address
should be incremmented by offset for all type of transfers, not only for
Control DATA_OUT transfers.

Fixes: cf77b5fb9b ("usb: dwc2: gadget: Transfer length limit checking for DDMA")
Fixes: e02f9aa611 ("usb: dwc2: gadget: EP 0 specific DDMA programming")
Fixes: aa3e8bc813 ("usb: dwc2: gadget: DDMA transfer start and complete")

Signed-off-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-29 09:57:44 +01:00
..
Kconfig
Makefile
core.c
core.h
core_intr.c
debug.h
debugfs.c
gadget.c usb: dwc2: Fix INTR OUT transfers in DDMA mode. 2020-10-29 09:57:44 +01:00
hcd.c
hcd.h
hcd_ddma.c
hcd_intr.c
hcd_queue.c
hw.h
params.c usb: dwc2: Fix parameter type in function pointer prototype 2020-10-29 09:57:41 +01:00
pci.c
platform.c usb: dwc2: Fix error path in gadget registration 2020-08-19 08:16:15 +02:00