From: Mian Yousaf Kaukab Date: Fri, 9 Jan 2015 12:38:59 +0000 (+0100) Subject: usb: dwc2: gadget: fix zero length packet transfers X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~86^2^2~124 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f71b5e2533debe564f21c068aaabc42c6293d18b;p=pandora-kernel.git usb: dwc2: gadget: fix zero length packet transfers According to programming guide, zero length packet should be programmed on its own and should not be counted in DIEPTSIZ.PktCnt with other packets. For ep0, this is the zlp for DATA IN stage (if required) and not for the STATUS stage. Tested-by: Robert Baldyga Acked-by: Paul Zimmerman Signed-off-by: Gregory Herrero Signed-off-by: Mian Yousaf Kaukab Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed