linux kernel 3.4.5的板子插入USB鼠标,出现例如以下错误LOG:
[ 191.177508] Plug in USB Port2
[ 191.363516] usb 1-1: new full speed USB device number 10 using Mstar-ehci-2
[ 191.578860] First get dev desc failed
[ 192.413517] usb 1-1: device not accepting address 10, error -71
[ 192.453519] ==13==> hub_port_init 1
[ 192.457483] Plug in USB Port2
[ 192.643505] usb 1-1: new full speed USB device number 11 using Mstar-ehci-2
[ 192.857818] First get dev desc failed
[ 193.693513] usb 1-1: device not accepting address 11, error -71
[ 193.733526] ==13==> hub_port_init 1
[ 193.737493] Plug in USB Port2
[ 193.923514] usb 1-1: new full speed USB device number 12 using Mstar-ehci-2
[ 194.137859] First get dev desc failed
[ 194.973524] usb 1-1: device not accepting address 12, error -71
[ 195.013520] ==13==> hub_port_init 1
[ 195.017485] Plug in USB Port2
[ 195.203527] usb 1-1: new full speed USB device number 13 using Mstar-ehci-2
[ 195.417873] First get dev desc failed
[ 196.253514] usb 1-1: device not accepting address 13, error -71
[ 196.293517] hub 1-0:1.0: unable to enumerate USB device on port 1
导致鼠标不能使用,查找半天原因,发现是板子HOST接口的D+和D-接反了,把它接正过来,鼠标能够正常使用,正常的LOG例如以下:
[ 71.114150] ==13==> hub_port_init 1
[ 71.118120] Plug in USB Port2
[ 71.304122] usb 1-1: new low speed USB device number 3 using Mstar-ehci-2
[ 71.755549] input: OM as /devices/platform/Mstar-ehci-2.1/usb1/1-1/1-1:1.0/input/input3
[ 71.766243] generic-usb 0003:04F3:0232.0002: input,hidraw0: USB HID v1.11 Mouse [OM] on usb-mstar-1/input0
表明可以正常使用,特此记录。