From: Mian Yousaf Kaukab Date: Thu, 24 Mar 2011 11:20:13 +0000 (+0100) Subject: usb: usb_storage: do not align length of request for CBW to maxp size X-Git-Tag: v3.0-rc1~337^2~138^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=806e8f8fcc27e1753947bd9f059ba2316cf8f92a;p=pandora-kernel.git usb: usb_storage: do not align length of request for CBW to maxp size Mass-storage and file-storage gadgets align the length to maximum-packet-size when preparing the request to receive CBW. This is unnecessary and prevents the controller driver from knowing that a short-packet is expected. It is incorrect to set short_not_ok when preparing the request to receive CBW. CBW will be a short-packet so short_not_ok must not be set. This makes bh->bulk_out_intended_length unnecessary so it is also removed. Signed-off-by: Mian Yousaf Kaukab Acked-by: Michal Nazarewicz Acked-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed