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.

AM625: USB log

Part Number: AM625

I just connected one mouse on AM62x-SK board USB0 to boot the board with HDMI screen connected, got many USB logs as below, seems enumerated twice, even support USB3.0,how to interpret it?

[    8.346408] usbcore: registered new interface driver usbfs

[    8.352393] usbcore: registered new interface driver hub

[    8.358267] usbcore: registered new device driver usb

[    8.397483] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller

[    8.403284] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 1

[    8.411871] xhci-hcd xhci-hcd.2.auto: hcc params 0x0258fe6d hci version 0x110 quirks 0x0000000000010010

[    8.426572] xhci-hcd xhci-hcd.2.auto: irq 445, io mem 0x31000000

[    8.433251] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10

[    8.441680] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    8.449713] usb usb1: Product: xHCI Host Controller

[    8.460383] usb usb1: Manufacturer: Linux 5.10.109-g9e58028f94 xhci-hcd

[    8.467641] usb usb1: SerialNumber: xhci-hcd.2.auto

[    8.473815] hub 1-0:1.0: USB hub found

[    8.477927] hub 1-0:1.0: 1 port detected

[    8.482698] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller

[    8.488541] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 2

[    8.496524] xhci-hcd xhci-hcd.2.auto: Host supports USB 3.0 SuperSpeed

[    8.509840] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.

[    8.523032] wl18xx_driver wl18xx.1.auto: Direct firmware load for ti-connectivity/wl1271-nvs.bin failed with error -2

[    8.523040] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10

[    8.523055] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    8.549787] usb usb2: Product: xHCI Host Controller

[    8.554784] usb usb2: Manufacturer: Linux 5.10.109-g9e58028f94 xhci-hcd

[    8.561526] usb usb2: SerialNumber: xhci-hcd.2.auto

[    8.567672] hub 2-0:1.0: USB hub found

[    8.571615] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19)

[    8.740292] usb 1-1: new low-speed USB device number 2 using xhci-hcd

[    8.896416] usb 1-1: New USB device found, idVendor=0461, idProduct=4d51, bcdDevice= 7.17

[    8.904658] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0

[    8.911807] usb 1-1: Product: DELL Laser Mouse

[    8.920790] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)

[    8.930364] wlcore: loaded

[    9.102581] input: DELL Laser Mouse as /devices/platform/bus@f0000/f900000.dwc3-usb/31000000.usb/xhci-hcd.2.auto/usb1

/1-1/1-1:1.0/0003:0461:4D51.0001/input/input0

[    9.117507] hid-generic 0003:0461:4D51.0001: input: USB HID v1.11 Mouse [DELL Laser Mouse] on usb-xhci-hcd.2.auto-1/i

nput0

[    9.128851] usbcore: registered new interface driver usbhid

[    9.134475] usbhid: USB HID core driver

  • Hi Tony,

    The AM62x USB host controller itself (not the USB PHY) supports both USB2.0 and USB3.0, so the kernel xHCI driver creates the logical buses for both of USB2.0 and USB3.0. However, since AM62x only has USB2.0 PHY, the USB3.0 bus init fails as the following kernel log shows:

    [    8.571615] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19)

    BTY, after Linux is booted, if no USB device is attached to the USB port, 'lsusb' command shows:

    root@am62xx-evm:~# lsusb                                                                   
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub                                                                                                                        
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 

    which shows both logical USB buses. Though the USB3.0 bus won't be able to detect any USB device since it doesn't have a USB PHY.

  • Bin,

    Thanks, so each USB inits twice:: USB3.0 and USB2.0.

    which shows both logical USB buses. Though the USB3.0 bus won't be able to detect any USB device since it doesn't have a USB PHY.

    Should display 4 logical USB buses? as there are 2 USB module, each has 2 logic bus?

  • Thanks, so each USB inits twice:: USB3.0 and USB2.0.

    Technically the USB hardware is noly initialized once, it is that the xHCI driver runs the logical bus detection twice to create the two logical buses.

    Should display 4 logical USB buses? as there are 2 USB module, each has 2 logic bus?

    Actually the log is for USB1. USB0 is not in host mode yet if no USB device attached.

    You would see 4 logical buses if there is a USB device attached to USB0 port.