From: Alan Stern Date: Fri, 25 Mar 2011 15:46:27 +0000 (-0400) Subject: USB: g_file_storage: don't send padding when stall=n X-Git-Tag: v3.0-rc1~337^2~138^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee81b3e086c907a3347b15ef219a24fc8bf900f6;p=pandora-kernel.git USB: g_file_storage: don't send padding when stall=n This patch (as1455) removes the extra padding sent by g_file_storage and g_mass_storage when the gadget wants to send less data than requested by the host and isn't allowed to halt the bulk-IN endpoint. Although the Bulk-Only Transport specification requires the padding to be present, it isn't truly needed since the transfer will be terminated by a short packet anyway. Furthermore, many existing devices don't bother to send any padding. Signed-off-by: Alan Stern Acked-By: Michal Nazarewicz CC: Roger Quadros Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed