It's possible that you're seeing more than one problem.

On Tue, 20 Dec 2005, Brown, Len wrote:

> # nothing in /proc/bus/usb/devices/

Did you try doing "cat /proc/bus/usb/devices" ?

> The devices are plugged into the HP docking station.
> It has 3 ports, so I guess there is a hub inside it?
> dmesg does say stuff about a hub (attached w/ CONFIG_USB_DEBUG=y)

The dmesg log was very informative.  You've got one of those strange 
situations where things don't work at boot time but they do work later.  
In particular, the docking station's internal hub refused to initialize at 
boot time.  When you removed ehci-hcd, it did initialize at full speed.  
Then when you reloaded ehci-hcd it did initialize at high speed.

Perhaps this patch will help:

Index: linux-2.6.15-rc6/drivers/usb/core/hub.c
===================================================================
--- linux-2.6.15-rc6.orig/drivers/usb/core/hub.c
+++ linux-2.6.15-rc6/drivers/usb/core/hub.c
@@ -1463,7 +1463,7 @@ static int hub_port_reset(struct usb_hub
                switch (status) {
                case 0:
                        /* TRSTRCY = 10 ms; plus some extra */
-                       msleep(10 + 40);
+                       msleep(10 + 200);
                        /* FALL THROUGH */
                case -ENOTCONN:
                case -ENODEV:

If it does, you can try playing around with that time delay to see just 
how long it really needs to be.

> in the last scenario above where the USB keyboard is working
> and both echi-hcd and ohci-hcd are loaded, if I move the
> keyboard from the docking station to the laptop then
> the interrupts associated with the keyboard move from irq 201 (ehci-hcd)
> to irq 209 (ohci-hcd).

That's to be expected, since the docking station contains a high-speed
hub.

> When I boot with the USB keyboard and mouse connected directly
> to the laptop, then they still don't work after a boot with
> ehci-hcd present.

This sounds like a different problem.  Or at least, if it is the same 
problem it's affecting a different device.  I don't see why failure of the 
docking station to initialize should affect the keyboard and mouse.

> When I boot with the USB keyboard and mouse connected directly
> to the laptop, but with the laptop disconnected from the docking
> station, the USB keyboard works immediately, and gives interrupts
> on the ohci-hcd IRQ.  dmesg.mobile attached
> 
> so it seems to be the presence, rather than the use of, the
> docking station that is making ehci-hcd into a trouble-maker.

Can you send the dmesg log for the situation where you boot with the
keyboard and mouse plugged into the computer and the computer attached to
the docking station?

Alan Stern



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to