Support for maxSize to usb-serial to support EVDO

Bug #62552 reported by BenKochie
10
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Unassigned
linux-source-2.6.17 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: linux-source-2.6.17

To support KPC650 EVDO network cards, usb-serial must be patched to support an extra parameter

Info here: http://www.junxion.com/opensource/linux_highspeed_usbserial.html

Patch for 2.6.17:
--- usb-serial.c.orig 2006-09-25 13:11:41.000000000 -0700
+++ usb-serial.c 2006-09-26 20:27:07.000000000 -0700
@@ -58,6 +58,7 @@
    drivers depend on it.
 */

+static ushort maxSize = 0;
 static int debug;
 static struct usb_serial *serial_table[SERIAL_TTY_MINORS]; /* initially all NULL */
 static LIST_HEAD(usb_serial_driver_list);
@@ -799,7 +800,7 @@
                        dev_err(&interface->dev, "No free urbs available\n");
                        goto probe_error;
                }
- buffer_size = le16_to_cpu(endpoint->wMaxPacketSize);
+ buffer_size = (endpoint->wMaxPacketSize > maxSize)?endpoint->wMaxPacketSize:maxSize;
                port->bulk_in_size = buffer_size;
                port->bulk_in_endpointAddress = endpoint->bEndpointAddress;
                port->bulk_in_buffer = kmalloc (buffer_size, GFP_KERNEL);
@@ -1174,3 +1175,5 @@

 module_param(debug, bool, S_IRUGO | S_IWUSR);
 MODULE_PARM_DESC(debug, "Debug enabled or not");
+module_param(maxSize, ushort,0);
+MODULE_PARM_DESC(maxSize,"User specified USB endpoint size");

Tags: edgy-close
Revision history for this message
tz (thomas-mich) wrote :

Duplicate of bug 36340 and 42356

I can confirm it - my evdo speed just went up 10x when I patched the latest (027) kernel

Some discussion (and the patch in original form) at:

http://wildbill.nulldevice.net/wordpress/?p=144

http://wildbill.nulldevice.net/wordpress/?p=153

This should be a very high priority - evdo cards are common.

Revision history for this message
Bill Childers (bchilders) wrote :

This patch works for me, confirming.

Changed in linux-source-2.6.17:
status: Unconfirmed → Confirmed
Revision history for this message
Simone Tolotti (simontol) wrote :

This patch work for Option Globesurfer Icon GSM/3G/HSDPA 1.8Mbit modem (aka Vodafone Easybox)

Using the "option" kernel module I have a maximum download speed of 45/50 KB/sec
 and a really unstable connection.

After patching the usb-serial module:
#modprobe usbserial vendor=0x0af0 product=0x6600 maxSize=2048

Than I get 140/150 KB sec maximum download speed (the same with Windows).

Revision history for this message
Joel Nelson (joelnn) wrote :

I'd really like to see this done as well, don't want to be forced to use windows for evdo access.

Revision history for this message
Simone Tolotti (simontol) wrote :

Fixed for me in Feisty ( kernel 2.6.20)

Revision history for this message
Brian Murray (brian-murray) wrote :

I am assigning this bug to the 'ubuntu-kernel-team' per their bug policy. For future reference you can learn more about their bug policy at https://wiki.ubuntu.com/KernelTeamBugPolicies .

Changed in linux-source-2.6.17:
assignee: nobody → ubuntu-kernel-team
Revision history for this message
Sergio Zanchetta (primes2h) wrote :

The 18 month support period for Edgy Eft 6.10 has reached it's end of life. As a result, we are closing the linux-source-2.6.17 Edgy Eft kernel task.

Hardy Heron 8.04 was recently released. It would be helpful if you could test the new release and verify if this is still an issue - http://www.ubuntu.com/getubuntu/download . You should be able to test your bug using the LiveCD. Please let us know your results. Thanks.

Changed in linux-source-2.6.17:
status: Confirmed → Invalid
Changed in linux:
status: New → Incomplete
Revision history for this message
tz (thomas-mich) wrote :

The plain driver was superseded in newer kernels by the airprime driver which was designed for EVDO modems and is usually detected correctly. Some modems use the cdc_acm driver but such are apparently unaffected by this bug as it uses a different serial method.

Revision history for this message
Sergio Zanchetta (primes2h) wrote :

So I put it as fixed.
Feel free to reopen if it is still a problem.

Changed in linux:
status: Incomplete → Fix Released
Revision history for this message
Simone Tolotti (simontol) wrote :

I can confirm that this is not happening anymore since I've upgraded to Feisty . So no issues with both Feisty, Gutsy and Hardy. ( kernels >=2.6.20 )

Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.