Tool/software: Linux
Hi :
We used DRA756 customer board and insert Logitech USB optical mouse, and found it is disconnected and reconnected in cycle, the log is following as :
[ 218.107896] usb 3-1: USB disconnect, device number 4
[ 219.591370] usb 3-1: new low-speed USB device number 5 using xhci-hcd
[ 219.734859] usb 3-1: New USB device found, idVendor=046d, idProduct=c077
[ 219.741650] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 219.748824] usb 3-1: Product: USB Optical Mouse
[ 219.753400] usb 3-1: Manufacturer: Logitech
[ 219.757985] usb 3-1: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
[ 219.778505] input: Logitech USB Optical Mouse as /devices/44000000.ocp/48880000.omap_dwc3_1/48890000.usb/xhci-hcd.0.auto/usb3/3-1/3-1:1.0/0003:046D:C077.0004/input/input3
[ 219.794239] hid-generic 0003:046D:C077.0004: input: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-xhci-hcd.0.auto-1/input0
[ 279.777899] usb 3-1: USB disconnect, device number 5
[ 281.261392] usb 3-1: new low-speed USB device number 6 using xhci-hcd
[ 281.404862] usb 3-1: New USB device found, idVendor=046d, idProduct=c077
[ 281.411635] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 281.418811] usb 3-1: Product: USB Optical Mouse
[ 281.423387] usb 3-1: Manufacturer: Logitech
[ 281.427972] usb 3-1: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
[ 281.442189] input: Logitech USB Optical Mouse as /devices/44000000.ocp/48880000.omap_dwc3_1/48890000.usb/xhci-hcd.0.auto/usb3/3-1/3-1:1.0/0003:046D:C077.0005/input/input4
[ 281.457875] hid-generic 0003:046D:C077.0005: input: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-xhci-hcd.0.auto-1/input0
[ 341.441900] usb 3-1: USB disconnect, device number 6
[ 342.941392] usb 3-1: new low-speed USB device number 7 using xhci-hcd
[ 343.084859] usb 3-1: New USB device found, idVendor=046d, idProduct=c077
[ 343.091706] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 343.098877] usb 3-1: Product: USB Optical Mouse
[ 343.103581] usb 3-1: Manufacturer: Logitech
[ 343.108139] usb 3-1: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
[ 343.122181] input: Logitech USB Optical Mouse as /devices/44000000.ocp/48880000.omap_dwc3_1/48890000.usb/xhci-hcd.0.auto/usb3/3-1/3-1:1.0/0003:046D:C077.0006/input/input5
[ 343.137886] hid-generic 0003:046D:C077.0006: input: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-xhci-hcd.0.auto-1/inp
SDK: DRA7xx_GLSDK_7.03.00.03 Kernel Version:3.14.57
I have disable autosuspend with using optargs='usbcore.autosuspend=-1',but the probelm is remain appear , I found the problem happen related with port status change in the XHCI-HUB.c file
when USB mouse is inserted , the status is:
if (raw_port_status & PORT_CSC)
status |= USB_PORT_STAT_C_CONNECTION << 16;
then :
if ((raw_port_status & PORT_RC))
status |= USB_PORT_STAT_C_RESET << 16;
but afrer about 60 seconds ,the status is USB_PORT_STAT_C_CONNECTION, then USB_PORT_STAT_C_RESET, as a result, USB is disconnected and reconnected, why the status is changed ? but
I used Lenovo USB mouse , it is OK , after inserted, the status is not changed.