linux/drivers/usb/dwc3
Pratyush Anand e5ba5ec833 usb: dwc3: gadget: fix scatter gather implementation
To work with scatter gather properly, fixes have been done in number of
functions. I will explain requirement of each fixes one by one.

start_slot: used to retrieve all request of SG during cleanup

dwc3_gadget_giveback: We need to skip link TRB if it was one of the
intermediate TRB of SG.

dwc3_prepare_one_trb: We need to track all submitted TRBs during
cleanup. Since, all TRBs would be serially allocated, so we can just
keep starting slot info and we can always find rest of them. We need to
pass sg node number, so that we cab appropriately program ISOC_FIRST/ISOC,
Chain etc.

dwc3_prepare_trbs: last_one should be set when it is last node
of SG as well as last node of request_list.

__dwc3_cleanup_done_trbs: It has been prepared after re-factorization of
dwc3_cleanup_done_reqs. It is called for each TRB of SG.

Signed-off-by: Pratyush Anand <pratyush.anand@st.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-01-18 14:32:41 +02:00
..
core.c usb: remove use of __devexit 2012-11-21 13:27:17 -08:00
core.h usb: dwc3: gadget: fix scatter gather implementation 2013-01-18 14:32:41 +02:00
debug.h usb: dwc: remove "All rights reserved" statement. 2011-10-04 10:25:52 -07:00
debugfs.c usb: dwc3: debugfs: convert our regdump to use regsets 2013-01-18 10:21:34 +02:00
dwc3-exynos.c usb: dwc3: exynos: use devm_ functions 2013-01-18 10:11:34 +02:00
dwc3-omap.c usb: remove use of __devexit 2012-11-21 13:27:17 -08:00
dwc3-pci.c usb: remove use of __devexit 2012-11-21 13:27:17 -08:00
ep0.c Merge 3.6-rc6 into usb-next 2012-09-16 20:42:46 -07:00
gadget.c usb: dwc3: gadget: fix scatter gather implementation 2013-01-18 14:32:41 +02:00
gadget.h usb: dwc3: correct set_halt implementation for ep0 2012-07-02 10:02:07 +03:00
host.c usb: dwc3: core: split host address space 2012-04-24 15:37:04 +03:00
io.h usb: dwc3: core: split host address space 2012-04-24 15:37:04 +03:00
Kconfig usb: gadget: get rid of USB_GADGET_{DUAL,SUPER}SPEED 2012-08-31 12:49:40 +03:00
Makefile usb: dwc3: drop HAVE_CLK dependency from Exynos glue layer 2012-10-19 11:13:47 +03:00