usb: ci_udc: don't assume QTDs are adjacent when transmitting ZLPs
authorStephen Warren <swarren@nvidia.com>
Tue, 1 Jul 2014 17:41:14 +0000 (11:41 -0600)
committerMarek Vasut <marex@denx.de>
Wed, 2 Jul 2014 13:45:38 +0000 (15:45 +0200)
commit8d7c39d3e8ad43dab3158220f3347186e6f1aa66
tree08019616da2596f92fbcefb1c6f7039cfde12d90
parentd7beeb9358a93e2dfd01e0ab5ff4317ce106c4d7
usb: ci_udc: don't assume QTDs are adjacent when transmitting ZLPs

Fix ci_ep_submit_next_request()'s ZLP transmission code to explicitly
call ci_get_qtd() to find the address of the other QTD to use. This
will allow us to correctly align each QTD individually in the future,
which may involve leaving a gap between the QTDs.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
drivers/usb/gadget/ci_udc.c