Hi,
I am developing a driver for usb based vga frame grabber (it uses cypress ez-usb fx2 chip). Everything works fine, except on some VIA 8235 USB EHCI our device gets disconnected after some period of work (usually somewhere between 2 and 24 hrs of continues USB transfers). After that disconnect UHCI still feels that device is attached and trying to assign new usb address for it. But device is not accepting it.
1) I know for sure that device's firmware is up and running (I have means to check it)
2) Linux stop accepting any usb device. I've tried to connect mouse after that - no success.
3) No any exception reported.
Below is a kernel debug log.


Does anybody saw anything similar? Any help or advaces?

Thanks.
wcedev.

-- LOG ------
At this point we had our system running normaly for some time (5 mins – 2hrs)


user.notice: Apr 9 21:31:27 klog: kern.info: vga2usb: entering waiting urbs completion
As many times before, we submitted urb to the HCD and expecting BULK IN transfer. However, this problem is not specific only to the BULK transfer, we also saw it with CONTROL IN transfers.


user.notice: Apr 9 21:31:27 klog: kern.debug: ehci_hcd 00:10.3: GetStatus port 1 status 00180b POWER sig=j PEC CSC CONNECT
Unexpectedly, ehci controller detected changes in the state of the port. Particularly, Port Enabled status have been changed and now it is 0, meaning that port got disabled, while it is still connected (however connected status also have been changed but now it is connected again)
As far as I understand such status changes are likely result of the Port Error (usb 2.0 spec section 11.8.1), caused by lost SOF/EOF synchronization between HC and device.


user.notice: Apr 9 21:31:27 klog: kern.debug: hub.c: port 1, portstatus 501, change 3, 480 Mb/s
user.notice: Apr 9 21:31:27 klog: kern.debug: hub.c: port 1 connection change
user.notice: Apr 9 21:31:27 klog: kern.debug: hub.c: port 1, portstatus 501, change 3, 480 Mb/s
user.notice: Apr 9 21:31:27 klog: kern.info: usb.c: USB disconnect on device 00:10.3-1 address 2
user.notice: Apr 9 21:31:27 klog: kern.info: Unregistering usb device c8806200
user.notice: Apr 9 21:31:27 klog: kern.info: Deallocating v2ustruct attempt ce91a3c0 count=2 removed=00000000
user.notice: Apr 9 21:31:27 klog: kern.info: grabber: exiting waiting urbs completions timeout=0
After port have been disabled HCD disconnects the deice


And here HCD tries to connect it again but fails to assign address to it, however firmware looks ok
user.notice: Apr 9 21:31:32 klog: kern.debug: hub.c: port 1, portstatus 501, change 0, 480 Mb/s
user.notice: Apr 9 21:31:32 klog: kern.debug: hub.c: port 1, portstatus 501, change 0, 480 Mb/s
user.notice: Apr 9 21:31:32 klog: kern.debug: hub.c: port 1, portstatus 501, change 0, 480 Mb/s
user.notice: Apr 9 21:31:32 klog: kern.debug: hub.c: port 1, portstatus 501, change 0, 480 Mb/s
user.notice: Apr 9 21:31:32 klog: kern.debug: hub.c: port 1, portstatus 511, change 0, 480 Mb/s
user.notice: Apr 9 21:31:32 klog: kern.debug: hub.c: port 1 of hub 1 not reset yet, waiting 10ms
user.notice: Apr 9 21:31:32 klog: kern.debug: hub.c: port 1, portstatus 511, change 0, 480 Mb/s
user.notice: Apr 9 21:31:32 klog: kern.debug: hub.c: port 1 of hub 1 not reset yet, waiting 10ms
user.notice: Apr 9 21:31:32 klog: kern.debug: ehci_hcd 00:10.3: port 1 high speed
user.notice: Apr 9 21:31:32 klog: kern.debug: ehci_hcd 00:10.3: GetStatus port 1 status 001005 POWER sig=se0 PE CONNECT
user.notice: Apr 9 21:31:32 klog: kern.debug: hub.c: port 1, portstatus 503, change 10, 480 Mb/s
user.notice: Apr 9 21:31:32 klog: kern.info: hub.c: new USB device 00:10.3-1, assigned address 3
user.notice: Apr 9 21:31:37 klog: kern.warn: usb_control/bulk_msg: timeout


Other information:
Our main test platform based on VIA Appolo CLE 266 chipset that includes VT8235 south bridge providing 6 USB 2.0 ports.
-- end of LOG ------


_________________________________________________________________
MSN Premium with Virus Guard and Firewall* from McAfee® Security : 2 months FREE* http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to