This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x + USB Hub speed down?

Other Parts Discussed in Thread: AM3352

Dear Experts,

My customer and I are facing a issue of USB hub speed down.
Customer's board use AM3352 + TI SDK 7.0 + GL854G (7-ports USB Hub IC).
We used dmesg to check the system status, we got logs as bottom while plug-in a High-speed USB mass storage dongle.
As the log, the USB Hub first runs on 480Mb/s, then runs on 12Mb/s.
I've asked H/W engineer to check the D+ / D- signal, the waveform lock on 400mV after detecting the high-speed device as USB2.0 High-speed SPEC.
Therefor my H/W engineer think there is no speed down issue.

However, custoomer need to know why customer's board shows up these log, but not on the AM335x BBB and AM335x Start Kit.
Any suggestion?

Best Regards,
Wayne Kuo

[ 158.380038] usb usb2: usb wakeup-resume
[ 158.380105] usb usb2: usb auto-resume
[ 158.380133] hub 2-0:1.0: hub_resume
[ 158.380254] hub 2-0:1.0: port 1: status 0507 change 0004
[ 158.380323] hub 2-0:1.0: state 7 ports 1 chg 0002 evt 0000
[ 158.391782] usb 2-1: usb wakeup-resume
[ 158.391851] usb 2-1: usb auto-resume
[ 158.461795] usb 2-1: finish resume
[ 158.462134] hub 2-1:1.0: hub_resume
[ 158.462709] hub 2-1:1.0: port 2: status 0503 change 0004
[ 158.463326] hub 2-0:1.0: resume on port 1, status 0
[ 158.463346] hub 2-0:1.0: port 1, status 0507, change 0004, 480 Mb/s
[ 158.463367] hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 158.463415] hub 2-1:1.0: state 7 ports 4 chg 0004 evt 0000
[ 158.481771] usb 2-1.2: usb wakeup-resume
[ 158.482072] usb 2-1.2: finish resume
[ 158.482366] hub 2-1.2:1.0: hub_resume
[ 158.483206] hub 2-1.2:1.0: port 3: status 0101 change 0001
[ 158.591810] hub 2-1:1.0: resume on port 2, status 0
[ 158.591833] hub 2-1:1.0: port 2, status 0503, change 0004, 480 Mb/s
[ 158.592177] hub 2-1.2:1.0: state 7 ports 4 chg 0008 evt 0000
[ 158.592486] hub 2-1.2:1.0: port 3, status 0101, change 0000, 12 Mb/s
[ 158.672014] usb 2-1.2.3: new high-speed USB device number 4 using musb-hdrc
[ 158.862797] usb 2-1.2.3: default language 0x0409
[ 158.863600] usb 2-1.2.3: udev 4, busnum 2, minor = 131
[ 158.863618] usb 2-1.2.3: New USB device found, idVendor=054c, idProduct=02a5
[ 158.871063] usb 2-1.2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 158.878981] usb 2-1.2.3: Product: Storage Media
[ 158.883779] usb 2-1.2.3: Manufacturer: Sony
[ 158.888193] usb 2-1.2.3: SerialNumber: 9B3001201150014514
[ 158.899081] usb 2-1.2.3: usb_probe_device
[ 158.899121] usb 2-1.2.3: configuration #1 chosen from 1 choice
[ 158.899392] usb 2-1.2.3: adding 2-1.2.3:1.0 (config #1, interface 0)
[ 158.902494] usb-storage 2-1.2.3:1.0: usb_probe_interface
[ 158.902537] usb-storage 2-1.2.3:1.0: usb_probe_interface - got id
[ 158.902564] usb-storage 2-1.2.3:1.0: USB Mass Storage device detected
[ 158.919522] usb-storage 2-1.2.3:1.0: Quirks match for vid 054c pid 02a5: 80000
[ 158.927412] scsi0 : usb-storage 2-1.2.3:1.0
[ 160.359032] scsi 0:0:0:0: Direct-Access Sony Storage Media 0100 PQ: 0 ANSI: 0 CCS
[ 160.374692] sd 0:0:0:0: [sda] 15624192 512-byte logical blocks: (7.99 GB/7.45 GiB)
[ 160.395772] sd 0:0:0:0: [sda] Write Protect is off
[ 160.400866] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[ 160.401441] sd 0:0:0:0: [sda] No Caching mode page found
[ 160.407116] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 160.418633] sd 0:0:0:0: [sda] No Caching mode page found
[ 160.424320] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 160.432073] sda: sda1
[ 160.444530] sd 0:0:0:0: [sda] No Caching mode page found
[ 160.450164] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 160.456672] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 160.835759] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

  • Hi Wayne,

    The log messages at yellow background are printed by hub_port_connect_change function function in ..linux/drivers/usb/core/hub.c file in case of:
    * a port connection-change occurs;
    * a port enable-change occurs (often caused by EMI);
    * usb_reset_and_verify_device() encounters changed descriptors

    But if these messages appears only with customer's board but not with am335x BBB when using the same software and all other conditions are the same I think there is some issue with customer's board schematics related to resistance or capacitance.

    BR
    Tsvetolin Shulev
  • Do you have 3 mass storage devices attached to this board? Could you also post the output of lsusb -v command and the feedback of the script from this post.