On Thu, 5 Oct 2006, Greg KH wrote:

> > (I need to buy a high-speed hub so I can run these sorts of tests here...)
> 
> They're real cheap now, I can send you one if you can't find one
> nearby...

I picked one up this morning.  Haven't had a chance to try it out yet...

> Ok, here's the log to answer the first and last of those questions.
> Same thing happens, I plug the device into the usb hub:
> 
> 
> [  304.401339] ehci_hcd 0000:00:1d.7: port 4 remote wakeup
> [  304.401352] hub 1-0:1.0: state 8 ports 8 chg 0000 evt 0000
> [  304.401359] usb usb1: usb auto-resume
> [  304.401365] usb usb1: finish resume
> [  304.401383] hub 1-0:1.0: hub_resume
> [  304.401391] ehci_hcd 0000:00:1d.7: resume root hub
> [  304.431673] hub 1-0:1.0: state 7 ports 8 chg 0000 evt 0000
> [  304.680955] GREGKH: ehci_hub_status_data: hcd->state=0x1
> [  304.680961] GREGKH: ehci_hub_status_data: temp & PORT_RESUME=0
> [  304.680964] GREGKH: ehci_hub_status_data: temp & PORT_RESUME=0
> [  304.680969] GREGKH: ehci_hub_status_data: temp & PORT_RESUME=0
> [  304.680972] GREGKH: ehci_hub_status_data: temp & PORT_RESUME=0
> [  304.680976] GREGKH: ehci_hub_status_data: temp & PORT_RESUME=0
> [  304.680979] GREGKH: ehci_hub_status_data: temp & PORT_RESUME=0
> 
> I should have numbered the ports that the temp variable got checked for,
> sorry.

No problem.  Since they all say the same thing, it doesn't matter which is 
which!  :-)

> The initial "hcd->state" line is printed out every time that function
> gets called.  The check is printed out every time it is about to be
> tested.  The patch that adds these lines is below.
> 
> Does this help out any?  Should I still check the jiffies value?

The timestamp is in the log, so we don't need the actual jiffies value.

This actually does help.  Clearly (temp & PORT_RESUME) is getting cleared
somewhere.  Perhaps by ehci_bus_resume().  Let me take a closer look at
this and experiment with the new hub.  I'll get back to you in a few days.

Alan Stern


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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