usb: ci_udc: terminate ep0 INs with a zlp when required
authorStephen Warren <swarren@nvidia.com>
Tue, 10 Jun 2014 21:27:39 +0000 (15:27 -0600)
committerMarek Vasut <marex@denx.de>
Wed, 11 Jun 2014 00:26:05 +0000 (02:26 +0200)
commite0672b3c3ae4fdd48a66af9f7932d2c8e839e459
treea3e33a98fefb69486c3f7ac4fd7a6b361a8d3366
parentb7c0051687f42173e15b151a74e524587e8b59db
usb: ci_udc: terminate ep0 INs with a zlp when required

Sometimes, a zero-length packet is required at the end of an IN
transaction so that the host knows the device is done sending data.
Enhance ci_udc to send a zlp when necessary. See the comments for
more details.

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