lkml.org 
[lkml]   [2011]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patches in this message
/
Date
Subject[PATCH] Increase usbfs bulk buffer size
From
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@gmail.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)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)
\
 
 \ /
  Last update: 2011-08-17 19:35    [W:0.601 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site