ohci-ssb driver on a Broadcom BCM5354 (mipsel)

Steve Brown <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
The 5354 has a dual ohci/ehci usb core. It's in an ASUS WL520gu wifi 
router. The ohci hcd driver registers, finds the hubs, but times out 
reading a descriptor from the device. This was originally posted to the 
linux-mips list, but they recommended I post it here instead.

I'm using 2.6.32.1 kernel from the openwrt project with the "ohci SSB 
bus glue" and "Fix ohci-ssb with !CONFIG_PM" patches from linux-mips.  
If there is a better test frame, let me know and I'll build it and test 
that. Also, the author isn't aware of any testing other than some insmod 
tests.

The ohci/usb interface does work w/ the software provided with the 
WL520gu and the same storage device. Further, I have the GPL source from 
the ASUS web site. It is based on a 2.4 kernel and appears to use a 
ssb<->pci shim and an unmodified ohci-pci driver.

Below are dumps w/ USB_MON, USB_DEBUG, DEBUGFS & DEBUG_KERNEL set.

Any suggestions on how to track down the problem?

Steve

=======================================================

mount -t debugfs none-debugfs /sys/kernel/debug
insmod usbmon
root@OpenWrt:/# cat /sys/kernel/debug/usbmon/1u
hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0002
ohci_hcd ssb0:1: GetStatus roothub.portstatus [0] = 0x00010100 CSC PPS
hub 1-0:1.0: port 1, status 0100, change 0001, 12 Mb/s
80973d00 384664677 C Ii:1:001:1 0:128 1 = 02
80973d00 384664847 S Ii:1:001:1 -150:128 2 <
80973580 384668715 S Ci:1:001:0 s a3 00 0000 0001 0004 4 <
80973580 384674308 C Ci:1:001:0 0 4 = 00010100
80973580 384674364 S Co:1:001:0 s 23 01 0010 0001 0000 0
80973580 384674380 C Co:1:001:0 0 0
80973580 384678763 S Ci:1:001:0 s a3 00 0000 0001 0004 4 <
80973580 384678797 C Ci:1:001:0 0 4 = 00010000
ohci_hcd ssb0:1: GetStatus roothub.portstatus [0] = 0x00010101 CSC PPS CCS
80973580 384710314 S Ci:1:001:0 s a3 00 0000 0001 0004 4 <
80973580 384716521 C Ci:1:001:0 0 4 = 01010100
80973580 384716580 S Co:1:001:0 s 23 01 0010 0001 0000 0
80973580 384716596 C Co:1:001:0 0 0
80973580 384746305 S Ci:1:001:0 s a3 00 0000 0001 0004 4 <
80973580 384746358 C Ci:1:001:0 0 4 = 01010000
80973580 384778307 S Ci:1:001:0 s a3 00 0000 0001 0004 4 <
80973580 384778355 C Ci:1:001:0 0 4 = 01010000
80973580 384810295 S Ci:1:001:0 s a3 00 0000 0001 0004 4 <
80973580 384810343 C Ci:1:001:0 0 4 = 01010000
hub 1-0:1.0: debounce: port 1: total 125ms stable 100ms status 0x101
80973580 384842291 S Ci:1:001:0 s a3 00 0000 0001 0004 4 <
80973580 384842339 C Ci:1:001:0 0 4 = 01010000
80973580 384847882 S Co:1:001:0 s 23 03 0004 0001 0000 0
80973580 384862293 C Co:1:001:0 0 0
----------- storage device plugged in here ---------------
ohci_hcd ssb0:1: GetStatus roothub.portstatus [0] = 0x00100103 PRSC PPS 
PES CCS
80973580 384918292 S Ci:1:001:0 s a3 00 0000 0001 0004 4 <
80973580 384924603 C Ci:1:001:0 0 4 = 03011000
usb 1-1: new full speed USB device using ohci_hcd and address 2
80973580 384978302 S Co:1:001:0 s 23 01 0014 0001 0000 0
80973580 384978353 C Co:1:001:0 0 0
80973580 384983463 S Ci:1:000:0 s 80 06 0100 0000 0040 64 <
usb 1-1: khubd timed out on ep0in len=0/64
80973580 389982623 C Ci:1:000:0 -2 0
80973580 389986132 S Ci:1:000:0 s 80 06 0100 0000 0040 64 <
usb 1-1: khubd timed out on ep0in len=0/64
80973580 394982622 C Ci:1:000:0 -2 0
80973580 394986132 S Ci:1:000:0 s 80 06 0100 0000 0040 64 <
-------------- device removed here -----------------
ohci_hcd ssb0:1: urb 80973580 path 1 ep0in 5fd60000 cc 5 --> status -62
80973580 399273249 C Ci:1:000:0 -62 0
80973580 399274352 S Co:1:001:0 s 23 03 0004 0001 0000 0
80973580 399274406 C Co:1:001:0 0 0
ohci_hcd ssb0:1: GetStatus roothub.portstatus [0] = 0x00030100 PESC CSC PPS
hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0002
ohci_hcd ssb0:1: GetStatus roothub.portstatus [0] = 0x00030100 PESC CSC PPS
hub 1-0:1.0: port 1, status 0100, change 0003, 12 Mb/s
80973580 399330295 S Ci:1:001:0 s a3 00 0000 0001 0004 4 <
80973580 399336306 C Ci:1:001:0 0 4 = 00010300
80973580 399336361 S Co:1:001:0 s 23 01 0014 0001 0000 0
80973580 399336377 C Co:1:001:0 0 0
80973580 399336396 S Co:1:001:0 s 23 01 0001 0001 0000 0
80973580 399336405 C Co:1:001:0 0 0
80973580 399336461 S Co:1:001:0 s 23 01 0001 0001 0000 0
80973580 399336471 C Co:1:001:0 0 0
80973d00 399336516 C Ii:1:001:1 0:128 1 = 02
80973d00 399336529 S Ii:1:001:1 -150:128 2 <
80973580 399340356 S Ci:1:001:0 s a3 00 0000 0001 0004 4 <
80973580 399346322 C Ci:1:001:0 0 4 = 00010300
80973580 399346377 S Co:1:001:0 s 23 01 0010 0001 0000 0
80973580 399346393 C Co:1:001:0 0 0
80973580 399346405 S Co:1:001:0 s 23 01 0011 0001 0000 0
80973580 399346412 C Co:1:001:0 0 0
80973580 399350801 S Ci:1:001:0 s a3 00 0000 0001 0004 4 <
80973580 399350836 C Ci:1:001:0 0 4 = 00010000
80973580 399382368 S Ci:1:001:0 s a3 00 0000 0001 0004 4 <
80973580 399382423 C Ci:1:001:0 0 4 = 00010000
80973580 399414338 S Ci:1:001:0 s a3 00 0000 0001 0004 4 <
80973580 399414385 C Ci:1:001:0 0 4 = 00010000
80973580 399446313 S Ci:1:001:0 s a3 00 0000 0001 0004 4 <
80973580 399446362 C Ci:1:001:0 0 4 = 00010000
hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100
80973580 399478313 S Ci:1:001:0 s a3 00 0000 0001 0004 4 <
80973580 399478361 C Ci:1:001:0 0 4 = 00010000


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.