I am looking at EHCI support for Qemu and noticing 20k data requests are failing due to usbdevfs. It is limiting the max data request to 16k, while the EHCI spec allows up to 20k (5 4k pages). This patch bumps the max buffer size to 20k. Signed-off-by: David S. Ahern <dsahern@xxxxxxxxx> diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index 3466fdc..df85f03 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c @@ -109,7 +109,8 @@ enum snoop_when { #define USB_DEVICE_DEV MKDEV(USB_DEVICE_MAJOR, 0) -#define MAX_USBFS_BUFFER_SIZE 16384 +/* EHCI allows up to 20k */ +#define MAX_USBFS_BUFFER_SIZE 20480 static int connected(struct dev_state *ps) -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html