X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=target%2Flinux%2Fgeneric-2.4%2Fpatches%2F801-usb_serial_endpoint_size.patch;fp=target%2Flinux%2Fgeneric-2.4%2Fpatches%2F801-usb_serial_endpoint_size.patch;h=0000000000000000000000000000000000000000;hp=2e436f0fa5719fbd5e38fab5d97926032f4f4ec6;hb=8e1ad72727169a0fa252f733b05d7eeef1423d36;hpb=58e0baf6cfa5b0b5ee4dc5e3350ee66442fcc5f0 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 deleted file mode 100644 index 2e436f0fa5..0000000000 --- a/target/linux/generic-2.4/patches/801-usb_serial_endpoint_size.patch +++ /dev/null @@ -1,30 +0,0 @@ ---- a/drivers/usb/serial/usbserial.c -+++ b/drivers/usb/serial/usbserial.c -@@ -331,6 +331,7 @@ static void generic_shutdown (struct us - #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[2]; /* Initially all zeroes. */ - -@@ -1557,7 +1558,11 @@ static void * usb_serial_probe(struct us - 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) { -@@ -1921,4 +1926,7 @@ MODULE_PARM_DESC(vendor, "User specified - - 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