summaryrefslogtreecommitdiff
path: root/target/linux/at91/patches-2.6.25/017-usb_serial_endpoint_size.patch
blob: 7bd38b4434281df7f49cb73062c1c9c1b415e5ee (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/drivers/usb/serial/usb-serial.c
+++ b/drivers/usb/serial/usb-serial.c
@@ -904,7 +904,7 @@ int usb_serial_probe(struct usb_interfac
 			dev_err(&interface->dev, "No free urbs available\n");
 			goto probe_error;
 		}
-		buffer_size = (endpoint->wMaxPacketSize > maxSize) ? endpoint->wMaxPacketSize : maxSize;
+		buffer_size = 2048;
 		port->bulk_in_size = buffer_size;
 		port->bulk_in_endpointAddress = endpoint->bEndpointAddress;
 		port->bulk_in_buffer = kmalloc (buffer_size, GFP_KERNEL);