On Wed, 14 Mar 2007, Lei Sun wrote:

> > On Wed, 14 Mar 2007, Lei Sun wrote:
> >
> >> Thanks for your reply! Appreciate it !
> >>
> >> the debugging code in ehci_hub_status_data() shows that the port status
> >> always return "0x1000" with or without flah devices plugged in.
> >
> > That disagrees with what you said earlier:
> >
> >>>> 3. Read port status register (2 ports total), port#1 return 0, port#2
> >>>> returned 1002,  by looking at the code bellow:
> >
> > You said the port status was 0x1002, not 0x1000.
> 
> status was 0x1002, that was print it out in ehci_irq() funtion last time, 
> ( i didn't put debugging message in ehci_hub_status_data() by that time).
> now ehci_irq() function print out "0x1803" instead,
> and 0x1000 is print out in ehci_hub_status_data() function.  I even disagree 
> with what I saw, because it doesn't seems to be consistent.
> 
> We did had some hardware issue, the chip was stressed by higher voltage. 
> But since i am still able to read/write PCI register, i am assuming it still 
> function correctly.

Can you post another dmesg log with CONFIG_USB_DEBUG turned on, showing 
what happens when you plug the device in?

> > When the device is plugged in, the port status should have the 0x0001 bit
> > set (PORT_CONNECT).  You may have to wait a few milliseconds for it to
> > debounce.  And when you first plug in the device, the 0x0002 bit should
> > also be set (PORT_CSC).
> 
> What about the PORT_RESUME bit?  is it suppose to be set when device plugged 
> in ?

It is not supposed to be set.

> >> i was mistaken by saying "port was powering down" , it is he USB power i 
> >> was
> >> talking about, we have a LED indicating the USB power , it was turned off
> >> right after usb was initialized. Is that suppose to be like this?
> >
> > What do you mean by "USB power"?  Do you mean power to the EHCI
> > controller?  Do you mean VBUS power on the USB port?  Do you mean
> > something else?
> 
> VBUS power

Either VBUS power should always be on (if the controller doesn't do power 
switching) or it should be on whenever PORT_POWER (0x1000) is enabled.  
Since that bit was enabled, VBUS power should have been on.

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-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to