diff options
| author | Alan Stern <[email protected]> | 2011-02-23 15:28:18 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2011-02-25 11:38:32 -0800 |
| commit | 969e3033ae7733a0af8f7742ca74cd16c0857e71 (patch) | |
| tree | 2aa76d00720d20304f318b8a7fd247c804d0e2cf /tools/perf/scripts/python/Perf-Trace-Util/lib | |
| parent | 22ced6874fc47bb051e7460443e454ca8efc457e (diff) | |
USB: serial drivers need to use larger bulk-in buffers
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 <[email protected]>
Tested-by: Flynn Marquardt <[email protected]>
CC: <[email protected]> [after .39-rc1 is out]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions