On Sat, Sep 02, 2006 at 11:52:57AM -0400, Alan Stern wrote:
> On Fri, 1 Sep 2006, Greg KH wrote:
> 
> > On Fri, Sep 01, 2006 at 10:27:03PM -0700, Greg KH wrote:
> > > On Wed, Aug 30, 2006 at 03:47:31PM -0400, Alan Stern wrote:
> > > > 
> > > > We never resolved the questions about this patch.  I'm including it 
> > > > here 
> > > > so that people can try it out and see what happens both with and 
> > > > without 
> > > > it.
> > > > 
> > > > Here's a good test scenario: Unplug all your USB devices and wait a few
> > > > seconds for the controllers to autosuspend.  Then try plugging in a
> > > > device.  Does the host controller notice it and wake up?
> > > 
> > > No, my USB 2.0 hub in my monitor does not wake up, with this patch :(
> > > 
> > > People aren't going to like not being able to use their hubs anymore...
> > > 
> > > Hm, I plugged a different 2.0 hub into my root port, and it showed up.
> > > Then it suspended.  Plugged a device into it, nothing.  Removed the hub,
> > > nothing then either.  The ehci driver still thinks this hub is present
> > > :(
> > 
> > Tried it with the same hub in my laptop (different ehci controller).
> > Same thing happened :(
> 
> Let's see if I understand this right:
> 
> You start out with nothing plugged in, and your EHCI root hub is 
> suspended.

In one situation yes, in another no.

> Then you plug in a 2.0 hub; the root hub wakes up and recognizes the
> external hub.  2 seconds later the external hub gets suspended and 2
> seconds after that the root hub gets suspended.

Yes.

> If you plug another device into the external hub, nothing wakes up.

Correct.

> If you unplug the external hub from the computer, the root hub doesn't 
> wake up.

Correct.

> This seems very strange.  Why should the root hub wake up when you connect 
> the external hub but not when you disconnect it?

That seems to be the problem here :)

> Seeing the dmesg log might help.  You might also want to add some 
> debugging printk's to ehci_irq() in ehci-hcd.c, especially in the "if 
> (status & STS_PCD)" section.

There is nothing in the debug log when I remove the hub, or connect the
device.

> (Hmmm, looking at that code it appears that "status" is not handled very
> well.  The result from readl(&ehci->regs->command) shouldn't be allowed to
> overwrite it.)

Care to make a fix?  :)

I don't have the time right now for the next few days to work much on
this (family stuff.)  Let me get back to you on Tuesday...

thanks,

greg k-h

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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