diff options
author | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-09-02 14:18:28 +0000 |
---|---|---|
committer | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-09-02 14:18:28 +0000 |
commit | 84fc36a44369a6cb2bbcd33b1eb3e76d3e785cdf (patch) | |
tree | a73ae575e9efe9ffa2a95553f52e2ed484318d3a | |
parent | 16c760b3740e289987e1cb705a80fc5fe0692852 (diff) |
add high-speed usb serial fix from Junxion to 2.4 kernel too (closes: #2274)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8573 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | target/linux/generic-2.4/patches/801-usb_serial_endpoint_size.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/target/linux/generic-2.4/patches/801-usb_serial_endpoint_size.patch b/target/linux/generic-2.4/patches/801-usb_serial_endpoint_size.patch new file mode 100644 index 000000000..b0d5facc4 --- /dev/null +++ b/target/linux/generic-2.4/patches/801-usb_serial_endpoint_size.patch @@ -0,0 +1,30 @@ +--- linux-2.4.34-old/drivers/usb/serial/usbserial.c 2007-08-27 15:32:14.000000000 +0200 ++++ linux-2.4.34-new/drivers/usb/serial/usbserial.c 2007-09-02 14:10:52.000000000 +0200 +@@ -331,6 +331,7 @@ + #ifdef CONFIG_USB_SERIAL_GENERIC + static __u16 vendor = 0x05f9; + static __u16 product = 0xffff; ++static int maxSize = 0; + + static struct usb_device_id generic_device_ids[9]; /* Initially all zeroes. */ + +@@ -1557,7 +1558,11 @@ + err("No free urbs available"); + goto probe_error; + } ++#ifdef CONFIG_USB_SERIAL_GENERIC ++ buffer_size = (endpoint->wMaxPacketSize > maxSize) ? endpoint->wMaxPacketSize : maxSize; ++#else + buffer_size = endpoint->wMaxPacketSize; ++#endif + port->bulk_in_endpointAddress = endpoint->bEndpointAddress; + port->bulk_in_buffer = kmalloc (buffer_size, GFP_KERNEL); + if (!port->bulk_in_buffer) { +@@ -1945,4 +1950,7 @@ + + MODULE_PARM(product, "h"); + MODULE_PARM_DESC(product, "User specified USB idProduct"); ++ ++MODULE_PARM(maxSize,"i"); ++MODULE_PARM_DESC(maxSize,"User specified USB endpoint size"); + #endif |