> 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. > 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 ? >> Only difference is in the ehci_irq(), when no device plugged, IRQ won't >> fire >> up. with device plugged and boot up, the port status is "0x1803" but no >> further action sare taken. > > The action doesn't happen in ehci_irq(). Like I said before, it happens > in ehci_hub_status_data(). > >> Could you please describe a bit more about what issues have been fixed in >> 2.6.20 , related to EHCI ? I took a peek of the 2.6.20 code , didn't find >> it >> would make a difference if the RESUME bit is not set in ehci_irq(). > > I don't remember what has been changed. In any case it shouldn't affect > you. > >> 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 > 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