Skip to contentSkip to conversation

Keyspan USB PDA adapter && test12pre3 hang

DISCUSSION Mohammad A. Haque 2 participants 4 messages Nov 30, 2000 USB

lore
Share & tools
lore
#0 lore raw

Anyone else out there with a Keyspan USB PDA adapter using test12-pre3? I'm experiencing hangs when I try to send data to my Palm Vx using it. Locks up the machine hard. No SysRq. No messages. USB serial debug output doesn't have much either...

Nov 30 00:09:25 viper kernel: keyspan_pda.c: keyspan_pda_write(16) 
Nov 30 00:09:25 viper kernel: usbserial.c: serial_write - port 0, 43
byte(s) 
Nov 30 00:09:25 viper kernel: keyspan_pda.c: keyspan_pda_write(43) 
Nov 30 00:09:25 viper kernel: usbserial.c: serial_write - port 0, 43
byte(s) 
Nov 30 00:09:25 viper kernel: keyspan_pda.c: keyspan_pda_write(43) 
Signature · 12 lines
=====================================================================
Mohammad A. Haque                              http://www.haque.net/ 
                                               [email protected]

  "Alcohol and calculus don't mix.             Project Lead
   Don't drink and derive." --Unknown          http://wm.themes.org/
                                               [email protected]
=====================================================================
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#1 lore raw
Quoted 4 lines · Mohammad A. Haque

Anyone else out there with a Keyspan USB PDA adapter using test12-pre3? I'm experiencing hangs when I try to send data to my Palm Vx using it. Locks up the machine hard. No SysRq. No messages. USB serial debug output doesn't have much either...

Are you using the usb-uhci host driver?

If so, the following fix from Georg Acher should do the trick:

-----
Replace line 275 (insert_td()) qh->hw.qh.element = virt_to_bus (new) | UHCI_PTR_TERM; by
qh->hw.qh.element = virt_to_bus (new) ;

-----

Let me (and the list) know if this doesn't fix your problem.

greg k-h

Signature · 6 lines
greg@(kroah|wirex).com
http://immunix.org/~greg
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#2 lore raw

Wed, Nov 29, 2000 at 11:44:20PM -0800
X-Operating-System: Linux 2.2.17-immunix (i686)

Quoted 9 lines · Greg KH

If so, the following fix from Georg Acher should do the trick:

-----
Replace line 275 (insert_td()) qh->hw.qh.element = virt_to_bus (new) | UHCI_PTR_TERM; by
qh->hw.qh.element = virt_to_bus (new) ;

-----

Here's the above in patch form to make it easier for people to apply.

greg k-h

Signature · 1 line
greg@(kroah|wirex).com
drivers/usb/usb-uhci.c +1 -1
diff -Naur -X dontdiff linux-2.4.0-test12-pre3/drivers/usb/usb-uhci.c linux-2.4.0-test12-pre3-greg/drivers/usb/usb-uhci.c
@@ -272,7 +272,7 @@
 
 	if (qh == prev ) {
 		// virgin qh without any tds
-		qh->hw.qh.element = virt_to_bus (new) | UHCI_PTR_TERM;
+		qh->hw.qh.element = virt_to_bus (new);
 	}
 	else {
 		// already tds inserted, implicitely remove TERM bit of prev
#3 lore raw
In reply to Mohammad A. Haque

That fixed it. Thanks

Quoted 16 lines · Greg KH

Are you using the usb-uhci host driver?

If so, the following fix from Georg Acher should do the trick:

-----
Replace line 275 (insert_td()) qh->hw.qh.element = virt_to_bus (new) | UHCI_PTR_TERM; by
qh->hw.qh.element = virt_to_bus (new) ;

-----

Let me (and the list) know if this doesn't fix your problem.

greg k-h

Signature · 12 lines
=====================================================================
Mohammad A. Haque                              http://www.haque.net/ 
                                               [email protected]

  "Alcohol and calculus don't mix.             Project Lead
   Don't drink and derive." --Unknown          http://wm.themes.org/
                                               [email protected]
=====================================================================
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/