Revision
3782 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Added
Wed Jul 30 17:29:57 2008 UTC
(5 years, 6 months ago)
by
dnehring
File length: 1212 byte(s)
By default the linux usb core sees only 64 bytes of capacity. Without this work-around there is no way to specify what the maximum packet size on the inbound bulk endpoint should be. If you consider that the MTU on these cards is set at 1500 and the usb bulk endpoint callbacks are only reading 64 bytes at a time off of the serial tty, it doesn't take long to start dropping packets and seriously junkify your connection.
This patch adds a third module parameter so you can specify what you think the inbound endpoint maximum packet size should be. If the parameter is not set at module loading time, it defaults to 0 and the maximum packet size detected by the usb core will be used.
The parameter name is : maxSize.