rpms/kernel/F-8 linux-2.6-usb-serial-ti_usb-fix-endpoint-requirements.patch, NONE, 1.1 linux-2.6-usb-serial-visor-fix-regression.patch, NONE, 1.1 kernel.spec, 1.421, 1.422

Chuck Ebbert (cebbert) fedora-extras-commits at redhat.com
Mon Apr 7 23:15:38 UTC 2008


Author: cebbert

Update of /cvs/pkgs/rpms/kernel/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv27567

Modified Files:
	kernel.spec 
Added Files:
	linux-2.6-usb-serial-ti_usb-fix-endpoint-requirements.patch 
	linux-2.6-usb-serial-visor-fix-regression.patch 
Log Message:
* Mon Apr 07 2008 Chuck Ebbert <cebbert at redhat.com> 2.6.24.4-76
- Fix Palm Treo/Visor devices not being recognized as serial ports. (#436950)
- Fix ti_usb_3410_5052 serial driver. (#439134)


linux-2.6-usb-serial-ti_usb-fix-endpoint-requirements.patch:

--- NEW FILE linux-2.6-usb-serial-ti_usb-fix-endpoint-requirements.patch ---
Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1bfd6693cd66f1e79abce62d3e8c3647e1f59a55
Commit:     1bfd6693cd66f1e79abce62d3e8c3647e1f59a55
Parent:     cdc647a9b75741659bfc6acc44a6b3a646ad53bf
Author:     Robert Spanton <rspanton at zepler.net>
AuthorDate: Sun Mar 23 19:47:23 2008 +0000
Committer:  Greg Kroah-Hartman <gregkh at suse.de>
CommitDate: Wed Apr 2 15:06:08 2008 -0700

    USB: serial: ti_usb_3410_5052: Correct TUSB3410 endpoint requirements.
    
    The changes introduced in commit
    063a2da8f01806906f7d7b1a1424b9afddebc443 changed the semantics of the
    num_interrupt_in, num_interrupt_out, num_bulk_in and num_bulk_out
    entries of the usb_serial_driver struct to be the number of endpoints
    the device has when probed.
    
    This patch changes the ti_1port_device usb_serial_driver struct to
    reflect this change.  The single port devices only have 1
    bulk_out endpoint in their initial configuration, and so this patch
    changes the number of other types to NUM_DONT_CARE.
    
    The same change probably needs doing to the ti_2port_device struct,
    but I don't have a two port device at hand.
    
    Signed-off-by: Robert Spanton <rspanton at zepler.net>
    Cc: stable <stable at kernel.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
---
 drivers/usb/serial/ti_usb_3410_5052.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/serial/ti_usb_3410_5052.c b/drivers/usb/serial/ti_usb_3410_5052.c
index b517f93..e3d241f 100644
--- a/drivers/usb/serial/ti_usb_3410_5052.c
+++ b/drivers/usb/serial/ti_usb_3410_5052.c
@@ -265,8 +265,8 @@ static struct usb_serial_driver ti_1port_device = {
 	.description		= "TI USB 3410 1 port adapter",
 	.usb_driver		= &ti_usb_driver,
 	.id_table		= ti_id_table_3410,
-	.num_interrupt_in	= 1,
-	.num_bulk_in		= 1,
+	.num_interrupt_in	= NUM_DONT_CARE,
+	.num_bulk_in		= NUM_DONT_CARE,
 	.num_bulk_out		= 1,
 	.num_ports		= 1,
 	.attach			= ti_startup,


linux-2.6-usb-serial-visor-fix-regression.patch:

--- NEW FILE linux-2.6-usb-serial-visor-fix-regression.patch ---
Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d04863e9e65767feff7807c8f693ac2719dd1944
Commit:     d04863e9e65767feff7807c8f693ac2719dd1944
Parent:     e8898681023c8bfb920afcd215e43c8832597b91
Author:     Brad Sawatzky <brad+kernel at swatter.net>
AuthorDate: Tue Mar 25 22:32:43 2008 -0400
Committer:  Greg Kroah-Hartman <gregkh at suse.de>
CommitDate: Wed Apr 2 15:06:09 2008 -0700

    USB: serial: fix regression in Visor/Palm OS module for kernels >= 2.6.24
    
    Fixes a bug/inconsistency revealed by the additional sanity checking in
       commit 063a2da8f01806906f7d7b1a1424b9afddebc443
    introduced in the original 2.6.24 branch.
    
    The Handspring Visor / PalmOS 4 device structure defines .num_bulk_out=2
    but the usb-serial probe returns num_bulk_out=3, triggering the check in
    the above commit and forcing a bail out when the device (a Garmin iQue in
    my case) attempts to connect.  The patch bumps the expected number of
    endpoints to 3.
    
    FWIW, this patch will probably solve the following kernel bug report for
    Treo users (identical symptoms, different model PalmOS units):
      <http://bugzilla.kernel.org/show_bug.cgi?id=10118>
    
    
    Signed-off-by: Brad Sawatzky <brad+kernel at swatter.net>
    Cc: stable <stable at kernel.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
---
 drivers/usb/serial/visor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c
index 22b3f78..c2b01f7 100644
--- a/drivers/usb/serial/visor.c
+++ b/drivers/usb/serial/visor.c
@@ -191,7 +191,7 @@ static struct usb_serial_driver handspring_device = {
 	.id_table =		id_table,
 	.num_interrupt_in =	NUM_DONT_CARE,
 	.num_bulk_in =		2,
-	.num_bulk_out =		2,
+	.num_bulk_out =		NUM_DONT_CARE,
 	.num_ports =		2,
 	.open =			visor_open,
 	.close =		visor_close,



Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-8/kernel.spec,v
retrieving revision 1.421
retrieving revision 1.422
diff -u -r1.421 -r1.422
--- kernel.spec	7 Apr 2008 04:32:02 -0000	1.421
+++ kernel.spec	7 Apr 2008 23:14:32 -0000	1.422
@@ -701,6 +701,9 @@
 Patch1309: linux-2.6-usb-serial-fix-recursive-lock.patch
 Patch1310: linux-2.6-usb-serial-option-add-dell-modem-1.patch
 Patch1311: linux-2.6-usb-serial-option-add-dell-modem-2.patch
+Patch1312: linux-2.6-usb-serial-ti_usb-fix-endpoint-requirements.patch
+Patch1313: linux-2.6-usb-serial-visor-fix-regression.patch
+
 Patch1320: linux-2.6-isdn-hisax-fix-request_irq-oops.patch
 Patch1330: linux-2.6-hwmon-coretemp-add-penryn-cpu.patch
 
@@ -1336,6 +1339,10 @@
 # support two more dell modems
 ApplyPatch linux-2.6-usb-serial-option-add-dell-modem-1.patch
 ApplyPatch linux-2.6-usb-serial-option-add-dell-modem-2.patch
+# fix ti_usb_3410_5052
+ApplyPatch linux-2.6-usb-serial-ti_usb-fix-endpoint-requirements.patch
+# recognize serial ports on treo/visor devices 
+ApplyPatch linux-2.6-usb-serial-visor-fix-regression.patch
 
 # ISDN
 # fix request_irq oops
@@ -2009,6 +2016,10 @@
 
 
 %changelog
+* Mon Apr 07 2008 Chuck Ebbert <cebbert at redhat.com> 2.6.24.4-76
+- Fix Palm Treo/Visor devices not being recognized as serial ports. (#436950)
+- Fix ti_usb_3410_5052 serial driver. (#439134)
+
 * Mon Apr 07 2008 Chuck Ebbert <cebbert at redhat.com> 2.6.24.4-75
 - Enable the 1-wire drivers (except for the Matrox driver which conflicts
   with the Matrox framebuffer driver.) (#441047)




More information about the fedora-extras-commits mailing list