From: Sebastian Andrzej Siewior Date: Tue, 23 Aug 2011 08:44:54 +0000 (+0200) Subject: USB: usbtest: use URB_ZERO_PACKET for BULK-OUT transfers X-Git-Tag: v3.2-rc1~183^2~179^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c79d094358326132693279bfb22e4f8454cc652;p=pandora-kernel.git USB: usbtest: use URB_ZERO_PACKET for BULK-OUT transfers Executing | testusb -a -c 1 -t 3 -v 421 -s 2048 does not complete on the gadget side. g_zero enqueues a 4096 bytes long buffer. The host sends 2048bytes which is a multiple of wMaxPacketSize (either 64 or 512 bytes). The host is done with sending data but the gadget waits for more. Since the protocol does not include transfer-length-field sending a terminating zero packet seems the only way out. Reviewed-by: Felipe Balbi Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed