Public bug reported:

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");

** Affects: linux-source-2.6.17 (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
Support for maxSize to usb-serial to support EVDO
https://launchpad.net/bugs/62552

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to