[PATCH] USB: g_file_storage: Set short_not_ok for bulk-out transfers
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 23 Mar 2006 20:05:16 +0000 (15:05 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 14 Apr 2006 18:12:20 +0000 (11:12 -0700)
commit70ffe6e14d7c5db84b92841471ce6fd0200010cd
treebc77a5b2a140cc00518aae2518d671e8911eddd7
parent7e1c0b86aca9d42fa4de3fdad17c57bb462fe1e2
[PATCH] USB: g_file_storage: Set short_not_ok for bulk-out transfers

I'm told that some UDC hardware may work better if it knows that
receiving a short packet should always cause an error.  Accordingly,
this patch (as663) sets the short_not_ok flag for bulk-out transfers in
g_file_storage.  Oddly enough, there are no circumstances where that
driver can legally receive a shorter-than-expected bulk-out packet.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/file_storage.c