[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+O4pCKfWLP+ohfUVi811CRbmrb2FyoMwkmxxGJ1TF2kKtGDEA@mail.gmail.com>
Date: Wed, 17 Aug 2011 19:07:01 +0200
From: Markus Rechberger <mrechberger@...il.com>
To: Greg Kroah-Hartman <gregkh@...e.de>, linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] Increase usbfs bulk buffer size
Hi,
this patch increases the maximum buffersize for bulk transfers, our
devices support at least up to 46k bytes for bulk transfers.
This patch allows us to lower the iterations between kernel and
userspace and lower the system pressure.
Signed-off-by: Markus Rechberger <mrechberger@...il.com>
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
index 37518df..ad193d0 100644
--- a/drivers/usb/core/devio.c
+++ b/drivers/usb/core/devio.c
@@ -107,7 +107,7 @@ enum snoop_when {
#define USB_DEVICE_DEV MKDEV(USB_DEVICE_MAJOR, 0)
-#define MAX_USBFS_BUFFER_SIZE 16384
+#define MAX_USBFS_BUFFER_SIZE 46080
static int connected(struct dev_state *ps)
View attachment "bulk_patch.diff" of type "text/x-patch" (373 bytes)
Powered by blists - more mailing lists