Files
twx-linux/include/linux
Alan Stern 366a91fbe3 USB: serial drivers need to use larger bulk-in buffers
commit 969e3033ae upstream.

When a driver doesn't know how much data a device is going to send,
the buffer size should be at least as big as the endpoint's maxpacket
value.  The serial drivers don't follow this rule; many of them
request only 256-byte bulk-in buffers.  As a result, they suffer
overflow errors if a high-speed device wants to send a lot of data,
because high-speed bulk endpoints are required to have a maxpacket
size of 512.

This patch (as1450) fixes the problem by using the driver's
bulk_in_size value as a minimum, always allocating buffers no smaller
than the endpoint's maxpacket size.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Flynn Marquardt <flynn@flynnux.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-03-23 13:03:46 -07:00
..
…
2011-03-04 12:24:31 -08:00
…
…
…
…
…
…
…
…
2011-01-20 18:30:17 -08:00
2011-01-20 18:30:17 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-10 08:51:44 -08:00
2011-01-15 20:07:45 -05:00
…
…
…
…
…
…
…
2011-01-13 08:03:12 -08:00
…
…
…
…
…
2010-12-13 16:11:13 -08:00
…
…
…
…
…
…
…
…
…
…
…
2010-12-16 17:53:38 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-10 08:51:44 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-12 20:16:43 -05:00
…
…
…
…
2011-01-17 03:26:26 -05:00
2010-12-08 10:30:34 -08:00
…
2011-01-10 08:51:44 -08:00
…
…
2011-01-07 17:50:27 +11:00
…
2011-01-07 17:50:23 +11:00
2010-12-07 20:16:56 +01:00
…
…
…
2011-03-04 17:53:39 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-10 07:38:53 -08:00
…
…
…
…
…
…
…
…
…
2011-01-10 22:11:23 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-21 11:55:31 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
2010-12-09 20:17:07 -08:00
…
…
…
…
…
…
2011-01-13 17:32:31 -08:00
2011-02-01 08:23:22 +10:00
…
…
…
…
…
2011-01-13 17:32:47 -08:00
2011-02-13 16:54:24 -08:00
2011-01-24 14:45:11 +10:30
…
…
…
…
…
2010-12-22 10:27:53 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-14 13:12:45 +00:00
…
…
…
…
…
…
…
…
…
…
…
…
2010-12-06 11:03:46 -08:00
…
…
…
…
…
…
…
2011-01-13 17:32:41 -08:00
…
…
…
2011-01-13 17:32:46 -08:00
2011-01-13 17:32:43 -08:00
2011-01-16 13:47:07 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-10 15:40:52 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-13 17:32:43 -08:00
…
…
…
…
2011-01-16 13:47:07 -05:00
…
…
2010-12-16 11:36:43 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2010-12-10 15:06:43 +01:00
…
2011-01-13 08:03:21 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-14 02:36:43 +00:00
…
…
…
…
…
…
…
2011-01-13 08:03:18 -08:00
2011-01-13 17:32:42 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-07 17:50:27 +11:00
2011-01-13 08:03:19 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-13 17:32:42 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
2011-02-28 18:00:31 -08:00
…
…
…
…
…
…
2011-01-13 08:03:20 -08:00
…
…
…
…
…
…
…
2010-12-20 09:37:33 +01:00
…
…
…
2010-12-16 10:05:06 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
2011-01-24 14:45:11 +10:30
…
…
…
…
…
…
…
…
…
…
2011-01-13 08:03:24 -08:00
…
…
…
…
…