rpms/kernel/F-9 linux-2.6-usb-option-increase-outgoing-buffers.patch, NONE, 1.1.2.1 kernel.spec, 1.891.2.14, 1.891.2.15

Chuck Ebbert cebbert at fedoraproject.org
Mon Feb 2 23:56:04 UTC 2009


Author: cebbert

Update of /cvs/pkgs/rpms/kernel/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv8636

Modified Files:
      Tag: private-fedora-9-2_6_27-branch
	kernel.spec 
Added Files:
      Tag: private-fedora-9-2_6_27-branch
	linux-2.6-usb-option-increase-outgoing-buffers.patch 
Log Message:
Fix slow data upload with USB wireless modem (F10#473252)

linux-2.6-usb-option-increase-outgoing-buffers.patch:

--- NEW FILE linux-2.6-usb-option-increase-outgoing-buffers.patch ---
From: Greg Kroah-Hartman <gregkh at suse.de>
Date: Tue, 16 Dec 2008 21:26:07 +0000 (-0800)
Subject: USB: option: increase outgoing buffer size and number
X-Git-Tag: v2.6.29-rc1~182^2~61
X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=f1632df36b9467b75b7abfd2799aef67ec74a60a

USB: option: increase outgoing buffer size and number

This should speed up the option driver's upload speed quite a bit.  It has been tested by a number of different people on different devices with success.

Cc: Roland Wolters <roland.wolters at credativ.de>
Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
---

diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
index 4c9497d..5ed1834 100644
--- a/drivers/usb/serial/option.c
+++ b/drivers/usb/serial/option.c
@@ -522,9 +522,9 @@ static int debug;
 /* per port private data */
 
 #define N_IN_URB 4
-#define N_OUT_URB 1
+#define N_OUT_URB 4
 #define IN_BUFLEN 4096
-#define OUT_BUFLEN 128
+#define OUT_BUFLEN 4096
 
 struct option_port_private {
 	/* Input endpoints and buffer for this port */


Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-9/kernel.spec,v
retrieving revision 1.891.2.14
retrieving revision 1.891.2.15
diff -u -r1.891.2.14 -r1.891.2.15
--- kernel.spec	2 Feb 2009 19:01:23 -0000	1.891.2.14
+++ kernel.spec	2 Feb 2009 23:55:33 -0000	1.891.2.15
@@ -723,6 +723,7 @@
 
 # make USB EHCI driver respect "nousb" parameter
 Patch2300: linux-2.6-usb-ehci-hcd-respect-nousb.patch
+Patch2301: linux-2.6-usb-option-increase-outgoing-buffers.patch
 
 # get rid of imacfb and make efifb work everywhere it was used
 Patch2600: linux-2.6-merge-efifb-imacfb.patch
@@ -1152,7 +1153,7 @@
 # USB
 # actually honor the nousb parameter
 ApplyPatch linux-2.6-usb-ehci-hcd-respect-nousb.patch
-
+ApplyPatch linux-2.6-usb-option-increase-outgoing-buffers.patch
 
 # ACPI
 # fix cpu detection (f10#435653)
@@ -1916,6 +1917,9 @@
 %kernel_variant_files -a /%{image_install_path}/xen*-%{KVERREL}.xen -e /etc/ld.so.conf.d/kernelcap-%{KVERREL}.xen.conf %{with_xen} xen
 
 %changelog
+* Mon Feb 02 2009 Chuck Ebbert <cebbert at redhat.com> 2.6.27.14-78.2.15
+- Fix slow data upload with USB wireless modem (F10#473252)
+
 * Mon Feb 02 2009 Chuck Ebbert <cebbert at redhat.com> 2.6.27.14-78.2.14
 - 2.6.27.14
 




More information about the scm-commits mailing list