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.

Linux/AM5728: USB2.0 disconnect issue

Part Number: AM5728

Tool/software: Linux

[ 197.275341] usb 3-1.2: USB disconnect, device number 5
[ 198.827338] usb 3-1.2: new low-speed USB device number 6 using xhci-hcd
[ 198.973608] input: PixArt USB Optical Mouse as /devices/platform/44000000.ocp/488c0000.omap_dwc3_2/488d0000.usb/xhci-hcd.2.auto/usb3/3-1/3-1.2/3-1.2:1.0/0003:04CA:0061.0004/input/input5
[ 199.004996] hid-generic 0003:04CA:0061.0004: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-xhci-hcd.2.auto-1.2/input0
[ 259.227359] usb 3-1.2: USB disconnect, device number 6
[ 260.707359] usb 3-1.2: new low-speed USB device number 7 using xhci-hcd
[ 260.862783] input: PixArt USB Optical Mouse as /devices/platform/44000000.ocp/488c0000.omap_dwc3_2/488d0000.usb/xhci-hcd.2.auto/usb3/3-1/3-1.2/3-1.2:1.0/0003:04CA:0061.0005/input/input6
[ 260.881584] hid-generic 0003:04CA:0061.0005: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-xhci-hcd.2.auto-1.2/input0
[ 321.179344] usb 3-1.2: USB disconnect, device number 7
[ 322.587335] usb 3-1.2: new low-speed USB device number 8 using xhci-hcd
[ 322.749992] input: PixArt USB Optical Mouse as /devices/platform/44000000.ocp/488c0000.omap_dwc3_2/488d0000.usb/xhci-hcd.2.auto/usb3/3-1/3-1.2/3-1.2:1.0/0003:04CA:0061.0006/input/input7
[ 322.768069] hid-generic 0003:04CA:0061.0006: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-xhci-hcd.2.auto-1.2/input0
[ 383.131345] usb 3-1.2: USB disconnect, device number 8
[ 384.487346] usb 3-1.2: new low-speed USB device number 9 using xhci-hcd
[ 384.638814] input: PixArt USB Optical Mouse as /devices/platform/44000000.ocp/488c0000.omap_dwc3_2/488d0000.usb/xhci-hcd.2.auto/usb3/3-1/3-1.2/3-1.2:1.0/0003:04CA:0061.0007/input/input8
[ 384.657712] hid-generic 0003:04CA:0061.0007: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-xhci-hcd.2.auto-1.2/input0
[ 445.083344] usb 3-1.2: USB disconnect, device number 9
[ 446.387333] usb 3-1.2: new low-speed USB device number 10 using xhci-hcd
[ 446.525603] input: PixArt USB Optical Mouse as /devices/platform/44000000.ocp/488c0000.omap_dwc3_2/488d0000.usb/xhci-hcd.2.auto/usb3/3-1/3-1.2/3-1.2:1.0/0003:04CA:0061.0008/input/input9
[ 446.557854] hid-generic 0003:04CA:0061.0008: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-xhci-hcd.2.auto-1.2/input0
[ 506.779344] usb 3-1.2: USB disconnect, device number 10
[ 508.307345] usb 3-1.2: new low-speed USB device number 11 using xhci-hcd
[ 508.445660] input: PixArt USB Optical Mouse as /devices/platform/44000000.ocp/488c0000.omap_dwc3_2/488d0000.usb/xhci-hcd.2.auto/usb3/3-1/3-1.2/3-1.2:1.0/0003:04CA:0061.0009/input/input10
[ 508.477778] hid-generic 0003:04CA:0061.0009: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-xhci-hcd.2.auto-1.2/input0
[ 568.731345] usb 3-1.2: USB disconnect, device number 11
[ 570.207349] usb 3-1.2: new low-speed USB device number 12 using xhci-hcd
[ 570.365599] input: PixArt USB Optical Mouse as /devices/platform/44000000.ocp/488c0000.omap_dwc3_2/488d0000.usb/xhci-hcd.2.auto/usb3/3-1/3-1.2/3-1.2:1.0/0003:04CA:0061.000A/input/input11
[ 570.383606] hid-generic 0003:04CA:0061.000A: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-xhci-hcd.2.auto-1.2/input0

  • Please post complete details - Linux version, is this a custom board, USB use case, etc...
  • The kernel is 4.9.28, which are based on ti-processor-sdk-linux-am57xx-evm-04.00.00.04-Linux-x86-Install.bin. Yes this is a custom board, the main hardware design is simillar with Ti's IDK board. We add a 4-ports USB hub chip to the USB2.0 port.A optic mouse is pluged on the HUB. The problem should not be the HUB chip because when we bypass the USB chip connect the mouse directlly to the USB2.0 PHY the err message still exist. We found that the problem wasn't always appear every time it got power on, it was random.
  • Linux am57xx-evm 4.9.28 #3 SMP PREEMPT Mon Apr 2 18:20:45 CST 2018 armv7l GNU/Linux. We just add a mouse to the usb2.0 hub chip USB2514 and the hub chip is connected to USB2.0 PHY of AM5728. The root file-system is your Arago.
  • David,

    Is your board running any application using this mouse?
    Have you tried with different mice to see if the issue also happens?
  • The rootfs we currently used was the one in your SDK named arago-base-tisdk-image-am57xx-evm.tar.xz. We does not add any app yet. I konw that the westen and matrix-gui are started after power on and they need input device. So I think only matrix-gui can use the mouse. We have try some other mice and it alse happens.

  • David,

    Can you please test those mice on the IDK board (or any TI am57x EVM) with the same kernel and filesystem to see if the issue happens too?
  • Hi Bin, thank you. sorry for the late replay. I test it on IDK board there is no issue. But it happens on another board which was make by other company.
    And the board used the same kernel.

    When the disconnect I capture the signal wave fo drvvbus and D+ D-, there is no change on drvvbus pin but D+ D - changes which seem to be a enumeration.
    Bellow is logs form debain system. We use the same kernel dtbs . We just change the roofs to Debain. and the USB still disconnect cyclly.
    So I think there might be some bug on the kernel or USB drivers.

    root@embest:~# [ 274.876770] usb 3-1.1: USB disconnect, device number 5
    [ 276.373204] usb 3-1.1: new low-speed USB device number 6 using xhci-hcd
    [ 276.549654] input: PixArt USB Optical Mouse as /devices/platform/44000000.ocp/488c0000.omap_dwc3_2/488d0000.usb/xhci-hcd.2.auto/usb3/3-1/3-1.1/3-1.1:1.0/0003:04CA:0061.0004/input/input5
    [ 276.568007] hid-generic 0003:04CA:0061.0004: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-xhci-hcd.2.auto-1.1/input0
    [ 336.572770] usb 3-1.1: USB disconnect, device number 6
    [ 338.092220] usb 3-1.1: new low-speed USB device number 7 using xhci-hcd
    [ 338.245640] input: PixArt USB Optical Mouse as /devices/platform/44000000.ocp/488c0000.omap_dwc3_2/488d0000.usb/xhci-hcd.2.auto/usb3/3-1/3-1.1/3-1.1:1.0/0003:04CA:0061.0005/input/input6
    [ 338.263932] hid-generic 0003:04CA:0061.0005: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-xhci-hcd.2.auto-1.1/input0
    [ 398.268774] usb 3-1.1: USB disconnect, device number 7
    [ 399.791230] usb 3-1.1: new low-speed USB device number 8 using xhci-hcd
    [ 399.941267] input: PixArt USB Optical Mouse as /devices/platform/44000000.ocp/488c0000.omap_dwc3_2/488d0000.usb/xhci-hcd.2.auto/usb3/3-1/3-1.1/3-1.1:1.0/0003:04CA:0061.0006/input/input7
    [ 399.959876] hid-generic 0003:04CA:0061.0006: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-xhci-hcd.2.auto-1.1/input0
    [ 459.964752] usb 3-1.1: USB disconnect, device number 8
    [ 461.490262] usb 3-1.1: new low-speed USB device number 9 using xhci-hcd
    [ 461.631360] input: PixArt USB Optical Mouse as /devices/platform/44000000.ocp/488c0000.omap_dwc3_2/488d0000.usb/xhci-hcd.2.auto/usb3/3-1/3-1.1/3-1.1:1.0/0003:04CA:0061.0007/input/input8
    [ 461.649434] hid-generic 0003:04CA:0061.0007: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-xhci-hcd.2.auto-1.1/input0
    [ 521.660774] usb 3-1.1: USB disconnect, device number 9
    [ 523.179258] usb 3-1.1: new low-speed USB device number 10 using xhci-hcd
    [ 523.333616] input: PixArt USB Optical Mouse as /devices/platform/44000000.ocp/488c0000.omap_dwc3_2/488d0000.usb/xhci-hcd.2.auto/usb3/3-1/3-1.1/3-1.1:1.0/0003:04CA:0061.0008/input/input9
    [ 523.351940] hid-generic 0003:04CA:0061.0008: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-xhci-hcd.2.auto-1.1/input0
    [ 583.356756] usb 3-1.1: USB disconnect, device number 10
    [ 584.878286] usb 3-1.1: new low-speed USB device number 11 using xhci-hcd
    [ 585.029567] input: PixArt USB Optical Mouse as /devices/platform/44000000.ocp/488c0000.omap_dwc3_2/488d0000.usb/xhci-hcd.2.auto/usb3/3-1/3-1.1/3-1.1:1.0/0003:04CA:0061.0009/input/input10
    [ 585.047929] hid-generic 0003:04CA:0061.0009: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-xhci-hcd.2.auto-1.1/input0
    [ 645.052768] usb 3-1.1: USB disconnect, device number 11
    [ 646.577307] usb 3-1.1: new low-speed USB device number 12 using xhci-hcd
    [ 646.719029] input: PixArt USB Optical Mouse as /devices/platform/44000000.ocp/488c0000.omap_dwc3_2/488d0000.usb/xhci-hcd.2.auto/usb3/3-1/3-1.1/3-1.1:1.0/0003:04CA:0061.000A/input/input11
    [ 646.736889] hid-generic 0003:04CA:0061.000A: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-xhci-hcd.2.auto-1.1/input0
    [ 706.748774] usb 3-1.1: USB disconnect, device number 12
    [ 708.266321] usb 3-1.1: new low-speed USB device number 13 using xhci-hcd
    [ 708.415355] input: PixArt USB Optical Mouse as /devices/platform/44000000.ocp/488c0000.omap_dwc3_2/488d0000.usb/xhci-hcd.2.auto/usb3/3-1/3-1.1/3-1.1:1.0/0003:04CA:0061.000B/input/input12
    [ 708.433582] hid-generic 0003:04CA:0061.000B: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-xhci-hcd.2.auto-1.1/input0

  • David,

    The log shows the mouse got disconnected and re-enumerated in every 60 seconds. Something triggers the mouse disconnect which I am not aware of...

    When you use debian filesystem, do you run X11 GUI or just uart console?

    Please try to add parameter 'usbcore.autosuspend=-1' in uboot bootargs to see if the issue still happens.

    If you are not sure how to add this parameter, please follow this thread: e2e.ti.com/.../2503725
  • There seems to be some reports similar to this issue on the internet, here is one of them: access.redhat.com/.../2839941, which seems using the same mouse that you have...

    When you test on your custom board and TI IDK evm, please ensure to use the exact same root filesystem, not just the kernel image. Because it is possible that some utility in userspace which triggers the disconnect.
  • On Debian filesystem, wo just run uart console. I add usbcore.autosuspend=-1 to uEnv.txt but bring no help.
    root@embest:~# dmesg | grep console
    [ 0.000000] Kernel command line: console=ttyO2,115200n8 usbcore.autosuspend=-1 root=PARTUUID=cf2bd22f-02 rw rootfstype=ext4 rootwait
    [ 2.792747] console [ttyO2] enabled
    root@embest:~#
  • David,

    I am kinda confused now, you just said adding autosuspend parameter doesn't help the issue, but my previous post is marked as a solution. Have you solved the issue already?
  • Hi, I haven’t heard back from you, I’m assuming you were able to resolve your issue. If not, just post a reply below (or create a new thread if the thread has locked due to time-out). thanks.