u-boot/drivers/usb
Stephen Warren b337b3b2a5 usb: ci_udc: fix emissions of ZLPs
Commit 6a13241635 "ci_udc: Update the ci_udc driver to support bulk
transfers" caused the value of "len" to change without updating subsquent
users of that variable in ci_ep_submit_next_request(). This caused the
code that detects when to emit ZLPs (Zero Length Packets) never to
trigger, which in turn caused host timeouts when a ZLP was required,
which in turn broke tests/dfu/, even despite the assertion in that
commit's description that "These changes are tested for both the DFU and
lthor."

Fix this by modifying the added dtd iteration code not to modify "len",
but rather to keep state in a separate variable. Rename the variables
while we're at it so they describe their purpose better.

Fixes: 6a13241635 ("ci_udc: Update the ci_udc driver to support bulk transfers")
Cc: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
2015-09-12 20:24:42 +02:00
..
dwc3 TI PHY: Add support to control 2nd USB PHY in DRA7xx/AM57xx 2015-08-28 12:33:20 -04:00
emul dm: usb: Add a terminator to the string destructor list 2015-04-22 11:13:24 -06:00
eth Move ALLOC_CACHE_ALIGN_BUFFER() to the new memalign.h header 2015-09-11 17:15:20 -04:00
gadget usb: ci_udc: fix emissions of ZLPs 2015-09-12 20:24:42 +02:00
host Move ALLOC_CACHE_ALIGN_BUFFER() to the new memalign.h header 2015-09-11 17:15:20 -04:00
musb usb: musb-new: CONFIG_MUSB prefix replacement with CONFIG_USB_MUSB 2015-08-05 17:20:34 +02:00
musb-new sunxi: musb: Drop no longer accurate comment in Kconfig help text 2015-08-31 08:43:41 +02:00
phy usb: xhci: omap: Remove common dwc3 drv functions calls 2015-07-22 08:55:44 +02:00
ulpi drivers: usb: convert makefiles to Kbuild style 2013-10-31 13:25:38 -04:00
Kconfig usb: musb-new: Kconfig support for USB_MUSB_HOST and USB_MUSB_GADGET 2015-08-05 17:20:34 +02:00