查看: 1611|回复: 0

USB鼠标工作时出现unlink,设备未移除,但却主机不再查询鼠标状态

[复制链接]

该用户从未签到

发表于 2012-10-12 13:54:45 | 显示全部楼层 |阅读模式
分享到:
鼠标不动作时,查看设备仍然在线,如下信息:


~ # cat /proc/bus/usb/devices

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 28/900 us ( 3%), #Int= 2, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.13 ohci_hcd
S: Product=AT91RM9200 OHCI
S: SerialNumber=at91rm9200
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=8e06 ProdID=f700 Rev= 0.00
S: Manufacturer=CH PRODUCTS
S: Product=CH USB TRACKBALL
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 3 Ivl=10ms

T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 3 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=04d9 ProdID=1400 Rev= 1.43
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=01 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
I: If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
E: Ad=82(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
~ #  


故障情况下
B: Alloc= 28/900 us ( 3%), #Int= 2, #Iso= 0
正常情况下
B: Alloc= 38/900 us ( 4%), #Int= 3, #Iso= 0


跟踪驱动打印发现执行unlink操作,打印如下:

drivers/usb/host/ohci-q.c ed_halted at91rm9200-ohci at91rm9200-ohci: urb c3dc5c80 path 1 ep1in 3c160000 cc 3 --> status -84
drivers/usb/host/ohci-q.c td_done at91rm9200-ohci at91rm9200-ohci: urb c3dc5c80 td ffc07100 (1) cc 3, len=0/3
drivers/usb/host/ohci-q.c finish_urb 70: bandwidth_int_reqs=2
drivers/usb/host/ohci-dbg.c: RET c3dc5c80 dev=7 ep=1in-intr flags=14 len=0/3 stat=-84
drivers/usb/host/ohci-dbg.c: data(0/3): stat:-84
drivers/usb/host/ohci-q.c periodic_unlink at91rm9200-ohci at91rm9200-ohci: unlink ed ffc06100 branch 2 [86us.], interval 8
drivers/usb/host/ohci-hcd.c ohci_irq 757: irq
at91rm9200-ohci at91rm9200-ohci: OHCI controller state
at91rm9200-ohci at91rm9200-ohci: OHCI 1.0, NO legacy support registers
at91rm9200-ohci at91rm9200-ohci: control 0x08f HCFS=operational IE PLE CBSR=3
at91rm9200-ohci at91rm9200-ohci: cmdstatus 0x20000 SOC=2
at91rm9200-ohci at91rm9200-ohci: intrstatus 0x00000061 RHSC FNO SO
at91rm9200-ohci at91rm9200-ohci: intrenable 0x8000001e MIE UE RD SF WDH
at91rm9200-ohci at91rm9200-ohci: ed_controlhead 23dbc040
at91rm9200-ohci at91rm9200-ohci: fminterval a7782edf
at91rm9200-ohci at91rm9200-ohci: hcca frame #e63c
at91rm9200-ohci at91rm9200-ohci: roothub.a 02000202 POTPGT=2 NPS NDP=2
at91rm9200-ohci at91rm9200-ohci: roothub.b 00000000 PPCM=0000 DR=0000
at91rm9200-ohci at91rm9200-ohci: roothub.status 00008000 DRWE
at91rm9200-ohci at91rm9200-ohci: roothub.portstatus [0] 0x00000303 LSDA PPS PES CCS
at91rm9200-ohci at91rm9200-ohci: roothub.portstatus [1] 0x00000303 LSDA PPS PES CCS
drivers/usb/host/ohci-hcd.c ohci_irq 757: irq
at91rm9200-ohci at91rm9200-ohci: OHCI controller state
at91rm9200-ohci at91rm9200-ohci: OHCI 1.0, NO legacy support registers
at91rm9200-ohci at91rm9200-ohci: control 0x08f HCFS=operational IE PLE CBSR=3
at91rm9200-ohci at91rm9200-ohci: cmdstatus 0x20000 SOC=2
at91rm9200-ohci at91rm9200-ohci: intrstatus 0x00000061 RHSC FNO SO
at91rm9200-ohci at91rm9200-ohci: intrenable 0x8000001a MIE UE RD WDH
at91rm9200-ohci at91rm9200-ohci: ed_controlhead 23dbc040
at91rm9200-ohci at91rm9200-ohci: fminterval a7782edf
at91rm9200-ohci at91rm9200-ohci: hcca frame #e63c
at91rm9200-ohci at91rm9200-ohci: roothub.a 02000202 POTPGT=2 NPS NDP=2
at91rm9200-ohci at91rm9200-ohci: roothub.b 00000000 PPCM=0000 DR=0000
at91rm9200-ohci at91rm9200-ohci: roothub.status 00008000 DRWE
at91rm9200-ohci at91rm9200-ohci: roothub.portstatus [0] 0x00000303 LSDA PPS PES CCS
at91rm9200-ohci at91rm9200-ohci: roothub.portstatus [1] 0x00000303 LSDA PPS PES CCS


不知道目前是进入什么流程分支,请大家帮忙分析下,万分感谢!
linux kernel 2.6.13



附上详细打印信息

http://www.refree.cn/log/real_unlink.txt

 
回复

使用道具 举报

您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

站长推荐上一条 /3 下一条



手机版|小黑屋|与非网

GMT+8, 2025-1-10 20:05 , Processed in 0.100555 second(s), 15 queries , MemCache On.

ICP经营许可证 苏B2-20140176  苏ICP备14012660号-2   苏州灵动帧格网络科技有限公司 版权所有.

苏公网安备 32059002001037号

Powered by Discuz! X3.4

Copyright © 2001-2024, Tencent Cloud.