UPSTREAM: usb: dwc3: gadget: don't send extra ZLP
authorJohn Youn <John.Youn@synopsys.com>
Tue, 22 Dec 2015 20:23:20 +0000 (12:23 -0800)
committerWu Liang feng <wulf@rock-chips.com>
Sun, 6 Mar 2016 13:37:24 +0000 (21:37 +0800)
commit64f6e3af251c82b39503a84f531cb6961e65672e
tree6e3229e642f0af5802255e475ab613788ef3716b
parenta1c3fa1060ca430f1033c5f9df75ea487705114c
UPSTREAM: usb: dwc3: gadget: don't send extra ZLP

If the request->length is zero, a ZLP should already be sent due to that
and another ZLP is not needed to terminate the transfer.

Fixes: 04c03d10e507 ("usb: dwc3: gadget: handle request->zero")
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
(cherry picked from commit d9261898a4b2c143c28568dc686a1becfc637a99)

Change-Id: Ib976552f93321f6ea52d3f0151c66fd6f2db8b17
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
drivers/usb/dwc3/gadget.c