aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorMarkus Rechberger <mrechberger@gmail.com>2009-08-09 21:23:34 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-23 06:46:33 -0700
commit5971897f3025249c0eea1987fb12efb8c65c93a4 (patch)
tree2d6668e35ab42bff36e6de2f616d40e792696491 /drivers/usb
parentUSB: isp1362: fix pulldown register defines and conf logic (diff)
downloadlinux-dev-5971897f3025249c0eea1987fb12efb8c65c93a4.tar.xz
linux-dev-5971897f3025249c0eea1987fb12efb8c65c93a4.zip
USB: increase usbdevfs max isoc buffer size
The current limit only allows isochronous transfers up to 32kbyte/urb, updating this to 192 kbyte/urb improves the reliability of the transfer. USB 2.0 transfer is possible with 32kbyte but increases the chance of corrupted/incomplete data when the system is performing some other tasks in the background. http://www.spinics.net/lists/linux-usb/msg19955.html Signed-off-by: Markus Rechberger <mrechberger@gmail.com> Cc: Oliver Neukum <oliver@neukum.org> Cc: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/core/devio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
index a1add776e89a..71514be8b715 100644
--- a/drivers/usb/core/devio.c
+++ b/drivers/usb/core/devio.c
@@ -1091,7 +1091,8 @@ static int proc_do_submiturb(struct dev_state *ps, struct usbdevfs_urb *uurb,
}
totlen += isopkt[u].length;
}
- if (totlen > 32768) {
+ /* 3072 * 64 microframes */
+ if (totlen > 196608) {
kfree(isopkt);
return -EINVAL;
}