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 USB1 host problem

Hello everybody,

We are developing a custom board based on the AM335x processor. We use linux kernel 3.14.33 with a custom device tree !

Every thing works as excepted, except the USB1 host port. This port is connected permanently to a 3 ports USB hub.

If I connect an usb drive (memory stick) before the startup (on the port1 of the hub), the drive is detected and everything works !

[    6.946938] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    6.965023] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
[    6.991807] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    6.999005] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.006622] usb usb2: Product: MUSB HDRC host driver
[    7.011833] usb usb2: Manufacturer: Linux 3.14.33 musb-hcd
[    7.017605] usb usb2: SerialNumber: musb-hdrc.1.auto
[    7.031379] hub 2-0:1.0: USB hub found
[    7.035361] hub 2-0:1.0: 1 port detected
[    7.507409] usb 2-1: new high-speed USB device number 2 using musb-hdrc
[    7.647479] usb 2-1: New USB device found, idVendor=0424, idProduct=2513
[    7.654513] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    7.665286] hub 2-1:1.0: USB hub found
[    7.677425] hub 2-1:1.0: 3 ports detected
[    7.908006] net eth0: phy found : id is : 0x7c0f1
[    7.967349] usb 2-1.1: new high-speed USB device number 3 using musb-hdrc
[    8.077619] usb 2-1.1: New USB device found, idVendor=abcd, idProduct=1234
[    8.084859] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.092559] usb 2-1.1: Product: UDisk
[    8.097424] usb 2-1.1: Manufacturer: General
[    8.101994] usb 2-1.1: SerialNumber: 1406161132241318556211
[    8.116206] usb-storage 2-1.1:1.0: USB Mass Storage device detected
[    8.135041] scsi0 : usb-storage 2-1.1:1.0
[    9.138330] scsi 0:0:0:0: Direct-Access     General  UDisk            5.00 PQ: 0 ANSI: 2
[    9.156324] sd 0:0:0:0: [sda] 15728640 512-byte logical blocks: (8.05 GB/7.50 GiB)
[    9.166038] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    9.177917] sd 0:0:0:0: [sda] Write Protect is off
[    9.197359] sd 0:0:0:0: [sda] No Caching mode page found
[    9.202976] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.233464] sd 0:0:0:0: [sda] No Caching mode page found
[    9.239181] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.252182]  sda: sda1
[    9.270256] sd 0:0:0:0: [sda] No Caching mode page found
[    9.275872] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.282359] sd 0:0:0:0: [sda] Attached SCSI removable disk

But if I remove the usb key (I got a usb 2-1.1: USB disconnect, device number 3) and plug it again, nothing appends...

This is very strange... USB1_VBUS is always powered with a VCC 5V

I noticed another thing... if I do a echo on > /sys/bus/usb/devices/usb2/power/control and plug the key again, the device is detected (only one time)

Has some body an idea ?

Thank you in advance for your help !

Best regards

Steve