Re: High speed devices with kernel 2.6.21.5.

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Tue, 17 Jul 2007, Branden Sletteland wrote:

> With that code added I just see the print out for each of the four
> ports three times, and the device is not detected.

Try this patch instead.

Alan Stern


Index: 2.6.22/drivers/usb/host/ehci-hub.c
===================================================================
--- 2.6.22.orig/drivers/usb/host/ehci-hub.c
+++ 2.6.22/drivers/usb/host/ehci-hub.c
@@ -372,6 +372,13 @@ ehci_hub_status_data (struct usb_hcd *hc
 	/* port N changes (bit N)? */
 	spin_lock_irqsave (&ehci->lock, flags);
 	for (i = 0; i < ports; i++) {
+
+		/* Some HCs don't like to be jostled during a reset */
+		if (ehci->reset_done[i] &&
+				time_before(jiffies, ehci->reset_done[i])) {
+			printk("Skip status poll for port %d\n", i+1);
+			continue;
+		}
 		temp = ehci_readl(ehci, &ehci->regs->port_status [i]);
 
 		/*



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.