From: Igor Kotrasinski Date: Tue, 15 Sep 2015 14:55:29 +0000 (+0200) Subject: usb: gadget: dummy_hcd: emulate sending zlp in packet logic X-Git-Tag: omap-for-v4.3/fixes-rc5~79^2~11^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21c3ee93867694e8c7382ff77b4645b50d3233e9;p=pandora-kernel.git usb: gadget: dummy_hcd: emulate sending zlp in packet logic currently, when a zlp flag is set and an urb/usb_request buffer is filled without a short packet, transfer() leaves its status at -EINPROGRESS and does not rescan for short packet. In a scenario where ep.maxpacket bytes are copied, URB_ZERO_PACKET is set, urb buffer is filled and usb_request buffer is not, transfer() returns with an urb with -EINPROGRESS status, which dummy_hcd treats as incomplete transfer. Check for zlp and rescan appropriately. Signed-off-by: Igor Kotrasinski Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed