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/DRA756:循环断开 Logitech USB 光电鼠标

Guru**** 2549870 points
Other Parts Discussed in Thread: DRA756

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/700558/linux-dra756-logitech-usb-optical-mouse-disconnect-in-cycle

器件型号:DRA756

工具/软件:Linux

您好:

   我们 使用了 DRA756客户板并插入 Logitech USB 光电鼠标,发现它已断开连接并在循环中重新连接, 日志如下所示:

[218.107896] USB 3-1:USB 断开连接、器件编号4
[219.591370] USB 3-1:使用 xhci-hcd 的新型低速 USB 器件编号5
[219.734859] USB 3-1:找到新的 USB 设备、idVendor=046d、idProduct=c077
[219.741650] USB 3-1:新 USB 器件字符串:MFR=1、Product=2、SerialNumber=0
[219.748824] USB 3-1:产品:USB 光电鼠标
[219.753400] USB 3-1:制造商:Logitech
[219.757985] USB 3-1:EP 0x81 -舍入间隔为64微帧、EP desc 表示80微帧
[219.778505] 输入:Logitech USB 光电鼠标作为/devices/44000000.ocp/48880000.omap_dwc3_1/48890000.usb/xhci-hcd.0.auto/usb3/3-1/3-1:1.0/0003:046D:C077.0004/input3
[219.794239] hid-generic 0003:046D:C077.0004:输入:USB HID v1.11鼠标[Logitech USB 光电鼠标](位于 usb-xhci-hcd.0.auto-1/input0上)
[279.777899] USB 3-1:USB 断开连接、器件编号5
[281.261392] USB 3-1:使用 xhci-hcd 的新型低速 USB 器件编号6
[281.404862] USB 3-1:找到新的 USB 设备、idVendor=046d、idProduct=c077
[281.411635] USB 3-1:新 USB 器件字符串:MFR=1、Product=2、SerialNumber=0
[281.418811] USB 3-1:产品:USB 光电鼠标
[281.42337] USB 3-1:制造商:Logitech
[281.427972] USB 3-1:EP 0x81 -舍入间隔为64微帧、EP desc 显示80微帧
[281.442189] 输入:Logitech USB 光电鼠标作为/devices/44000000.ocp/48880000.omap_dwc3_1/48890000.usb/xhci-hcd.0.auto/usb3/3-1/3-1:1.0/0003:046D:C077.0005/input4
[281.457875] hid-generic 0003:046D:C077.0005:输入:USB HID v1.11鼠标[Logitech USB 光电鼠标](位于 usb-xhci-hcd.0.auto-1/input0上)
[341.441900] USB 3-1:USB 断开连接、器件编号6
[342.941392] USB 3-1:使用 xhci-hcd 的全新低速 USB 器件编号7
[343.084859] USB 3-1:找到新的 USB 设备、idVendor=046d、idProduct=c077
[343.091706] USB 3-1:新 USB 器件字符串:MFR=1、Product=2、SerialNumber=0
[343.098877] USB 3-1:产品:USB 光电鼠标
[343.103581] USB 3-1:制造商:Logitech
[343.108139] USB 3-1:EP 0x81 -舍入间隔为64微帧、EP desc 表示80微帧
[343.122181] 输入:Logitech USB 光电鼠标作为/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:输入:USB HID v1.11鼠标[Logitech USB 光电鼠标](位于 usb-xhci-hcd.0.auto-1/inp 上)

SDK:DRA7xx_GLSDK_7.03.00.03内核版本:3.14.57

我使用 optarget='usbcore.autosuspend=-1',but 禁用了自动挂起。出现探测程序, 发现与 xhi-hub.c 文件中的端口状态更改相关的问题

插入 USB 鼠标时,状态为:

IF (RAW_PORT_STATUS 和 PORT_CSC)
   status |= USB_PORT_STAT_C_CONNECTION << 16;

然后:

if ((raW_PORT_STATUS 和 PORT_RC))
      status |= USB_PORT_STAT_C_RESET << 16;

但大约60秒后,状态为 USB_PORT_STAT_C_CONNECTION,然后是 USB_PORT_STAT_C_RESET,结果 USB 断开连接并重新连接,为什么状态发生更改? 但是

我使用的是 Lenovo USB 鼠标,它正常,插入后状态不变。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!

    查看说明、似乎问题可能是由于设备故障(Logitech USB 光电鼠标)。 正如您提到的,其它鼠标(Lenovo USB)工作正常。
    连接到 PC 时、此故障鼠标是否正常工作? 看到了什么行为?
    BTW、它是有线还是无线鼠标?
    此外、为了进行测试、您能否分享一下如果鼠标通过集线器连接而不是直接连接、会发生什么情况。

    谢谢。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!

    如果您有任何新发现、请告诉我。 我现在要关闭此主题。

    谢谢。