Bug 6667 - usb keyboard (vendor: E5) doesn't work
Summary: usb keyboard (vendor: E5) doesn't work
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: USB (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: David Monterroso Cabello
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-08 11:36 UTC by migo
Modified: 2006-06-30 01:58 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.16-gentoo-r9
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description migo 2006-06-08 11:36:03 UTC
Most recent kernel where this bug did not occur: 2.6.16-gentoo-r9
Distribution: gentoo 2006.0
Hardware Environment: usb keyboard from e5world.com
Software Environment: 
Problem Description:

when i plug in keyboard kernel logs many messages like that:
drivers/usb/input/hid-core.c: input irq status -32 received
(keyboard doesn't work, replug doesn't help, i tried on windows xp environment and there 
keyboard works good)


Steps to reproduce:
use this keyboard;)


cat  /proc/bus/usb/devices
(...)
T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=062a ProdID=0201 Rev= 1.00
S:  Product=USB-compliant keyboard
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=   4 Ivl=10ms
Comment 1 Andrew Morton 2006-06-08 11:42:00 UTC
On Thu, 8 Jun 2006 11:39:33 -0700
bugme-daemon@bugzilla.kernel.org wrote:

>     Kernel Version: 2.6.16-gentoo-r9
> ...
> Most recent kernel where this bug did not occur: 2.6.16-gentoo-r9

You say the bug occurs in 2.6.16-gentoo-r9, but it didn't occur in
2.6.16-gentoo-r9.

Please clarify ;)

Comment 2 migo 2006-06-08 12:30:59 UTC
gandalf ~ # uname -a
Linux gandalf 2.6.16-gentoo-r9 #2 SMP Mon Jun 5 23:52:52 CEST 2006 x86_64 AMD 
Athlon(tm) 64 Processor 3000+ GNU/Linux

^ so what is it? 2.4.12?;)


fragments of /var/log/dmesg:

Jun  8 20:20:13 gandalf Linux version 2.6.16-gentoo-r9 (root@gandalf) (gcc version 3.4.4 
(Gentoo 3.4.4-r1, ssp
-3.4.4-1.0, pie-8.7.8)) #2 SMP Mon Jun 5 23:52:52 CEST 2006
Jun  8 20:20:13 gandalf BIOS-provided physical RAM map:
(...)
Jun  8 20:20:13 gandalf ehci_hcd 0000:00:13.3: EHCI Host Controller
Jun  8 20:20:13 gandalf ehci_hcd 0000:00:13.3: debug port 1
Jun  8 20:20:13 gandalf ehci_hcd 0000:00:13.3: new USB bus registered, assigned bus 
number 1
Jun  8 20:20:13 gandalf ehci_hcd 0000:00:13.3: irq 74, io mem 0xdbfef800
Jun  8 20:20:13 gandalf ehci_hcd 0000:00:13.3: USB 2.0 started, EHCI 1.00, driver 10 Dec 
2004
Jun  8 20:20:13 gandalf usb usb1: configuration #1 chosen from 1 choice
Jun  8 20:20:13 gandalf hub 1-0:1.0: USB hub found
Jun  8 20:20:13 gandalf hub 1-0:1.0: 8 ports detected
Jun  8 20:20:13 gandalf ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver 
(PCI)
Jun  8 20:20:13 gandalf GSI 24 sharing vector 0x52 and IRQ 24
Jun  8 20:20:13 gandalf ACPI: PCI Interrupt 0000:00:13.0[A] -> GSI 17 (level, low) -> IRQ 82
Jun  8 20:20:13 gandalf ohci_hcd 0000:00:13.0: OHCI Host Controller
Jun  8 20:20:13 gandalf ohci_hcd 0000:00:13.0: new USB bus registered, assigned bus 
number 2
Jun  8 20:20:13 gandalf ohci_hcd 0000:00:13.0: irq 82, io mem 0xdbfee000
Jun  8 20:20:13 gandalf usb usb2: configuration #1 chosen from 1 choice
Jun  8 20:20:13 gandalf hub 2-0:1.0: USB hub found
Jun  8 20:20:13 gandalf hub 2-0:1.0: 3 ports detected
Jun  8 20:20:13 gandalf GSI 25 sharing vector 0x5A and IRQ 25
Jun  8 20:20:13 gandalf ACPI: PCI Interrupt 0000:00:13.1[B] -> GSI 18 (level, low) -> IRQ 90
Jun  8 20:20:13 gandalf ohci_hcd 0000:00:13.1: OHCI Host Controller
Jun  8 20:20:13 gandalf ohci_hcd 0000:00:13.1: new USB bus registered, assigned bus 
number 3
Jun  8 20:20:13 gandalf ohci_hcd 0000:00:13.1: irq 90, io mem 0xdbfed000
Jun  8 20:20:13 gandalf usb usb3: configuration #1 chosen from 1 choice
Jun  8 20:20:13 gandalf hub 3-0:1.0: USB hub found
Jun  8 20:20:13 gandalf hub 3-0:1.0: 3 ports detected
Jun  8 20:20:13 gandalf ACPI: PCI Interrupt 0000:00:13.2[C] -> GSI 19 (level, low) -> IRQ 58
Jun  8 20:20:13 gandalf ohci_hcd 0000:00:13.2: OHCI Host Controller
Jun  8 20:20:13 gandalf ohci_hcd 0000:00:13.2: new USB bus registered, assigned bus 
number 4
Jun  8 20:20:13 gandalf ohci_hcd 0000:00:13.2: irq 58, io mem 0xdbfec000
Jun  8 20:20:13 gandalf usb usb4: configuration #1 chosen from 1 choice
Jun  8 20:20:13 gandalf hub 4-0:1.0: USB hub found
Jun  8 20:20:13 gandalf hub 4-0:1.0: 3 ports detected
Jun  8 20:20:13 gandalf usb 2-2: new low speed USB device using ohci_hcd and address 2
Jun  8 20:20:13 gandalf USB Universal Host Controller Interface driver v2.3
Jun  8 20:20:13 gandalf usb 2-2: configuration #1 chosen from 1 choice
Jun  8 20:20:13 gandalf usbcore: registered new driver usblp
Jun  8 20:20:13 gandalf drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Jun  8 20:20:13 gandalf Initializing USB Mass Storage driver...
Jun  8 20:20:13 gandalf usbcore: registered new driver usb-storage
Jun  8 20:20:13 gandalf USB Mass Storage support registered.
Jun  8 20:20:13 gandalf input: Logitech USB Receiver as /class/input/input1
Jun  8 20:20:13 gandalf input: USB HID v1.10 Mouse [Logitech USB Receiver] on 
usb-0000:00:13.0-2
Jun  8 20:20:13 gandalf usbcore: registered new driver usbhid
Jun  8 20:20:13 gandalf drivers/usb/input/hid-core.c: v2.6:USB HID core driver

(...)

Jun  8 20:23:27 gandalf usb 2-1: new low speed USB device using ohci_hcd and address 3
Jun  8 20:23:27 gandalf usb 2-1: configuration #1 chosen from 1 choice
Jun  8 20:23:27 gandalf input: USB-compliant keyboard as /class/input/input2
Jun  8 20:23:27 gandalf input: USB HID v1.10 Keyboard [USB-compliant keyboard] on 
usb-0000:00:13.0-1
Jun  8 20:23:27 gandalf input: USB-compliant keyboard as /class/input/input3
Jun  8 20:23:27 gandalf input: USB HID v1.10 Mouse [USB-compliant keyboard] on 
usb-0000:00:13.0-1
Jun  8 20:23:27 gandalf drivers/usb/input/hid-core.c: input irq status -32 received
Jun  8 20:23:27 gandalf drivers/usb/input/hid-core.c: input irq status -32 received
Jun  8 20:23:27 gandalf drivers/usb/input/hid-core.c: input irq status -32 received
Jun  8 20:23:27 gandalf drivers/usb/input/hid-core.c: input irq status -32 received
Jun  8 20:23:27 gandalf drivers/usb/input/hid-core.c: input irq status -32 received
Jun  8 20:23:27 gandalf drivers/usb/input/hid-core.c: input irq status -32 received
Jun  8 20:23:27 gandalf drivers/usb/input/hid-core.c: input irq status -32 received
Jun  8 20:23:27 gandalf drivers/usb/input/hid-core.c: input irq status -32 received
Jun  8 20:23:27 gandalf drivers/usb/input/hid-core.c: input irq status -32 received
Jun  8 20:23:27 gandalf drivers/usb/input/hid-core.c: input irq status -32 received
Jun  8 20:23:27 gandalf drivers/usb/input/hid-core.c: input irq status -32 received
Jun  8 20:23:27 gandalf drivers/usb/input/hid-core.c: input irq status -32 received
Jun  8 20:23:27 gandalf drivers/usb/input/hid-core.c: input irq status -32 received
Jun  8 20:23:27 gandalf drivers/usb/input/hid-core.c: input irq status -32 received
Jun  8 20:23:27 gandalf drivers/usb/input/hid-core.c: input irq status -32 received
Comment 4 migo 2006-06-10 08:54:22 UTC
now keyboard works correct. thank you.
Comment 5 David Monterroso Cabello 2006-06-29 01:15:57 UTC
I had the same problem with my USB keyboard

detected as this:

ohci_hcd 0001:10:1b.1: wakeup
usb 3-1: new full speed USB device using ohci_hcd and address 37
usb 3-1: configuration #1 chosen from 1 choice
hub 3-1:1.0: USB hub found
hub 3-1:1.0: 4 ports detected
usb 3-1.1: new low speed USB device using ohci_hcd and address 38
usb 3-1.1: configuration #1 chosen from 1 choice
input: USB-compliant keyboard as /class/input/input43
input: USB HID v1.10 Keyboard [USB-compliant keyboard] on usb-0001:10:1b.1-1.1
input: USB-compliant keyboard as /class/input/input44
input: USB HID v1.10 Mouse [USB-compliant keyboard] on usb-0001:10:1b.1-1.1
usb 3-1.2: new low speed USB device using ohci_hcd and address 39
usb 3-1.2: configuration #1 chosen from 1 choice
input: Acrox USB & PS/2 Mouse as /class/input/input45
input: USB HID v1.10 Mouse [Acrox USB & PS/2 Mouse] on usb-0001:10:1b.1-1.2
---

I aplied the patch linked by alan stern and now it get detected (at you can se 
above) and it works almost normally.

I mean, when i begin typing pressing tab, delete "too quickly" it becomes 
totally unresponsive, and i have to unplug and plug it again.

dmesg says :
drivers/usb/input/hid-core.c: input irq status -75 received
[...]
drivers/usb/input/hid-core.c: input irq status -75 received

until i unplung and replug it.

and then dmesg says:
hub 3-1:1.0: cannot reset port 1 (err = -110)
hub 3-1:1.0: cannot reset port 1 (err = -110)
hub 3-1:1.0: cannot reset port 1 (err = -110)
hub 3-1:1.0: cannot reset port 1 (err = -110)
hub 3-1:1.0: cannot reset port 1 (err = -110)
hub 3-1:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
hub 3-1:1.0: cannot disable port 1 (err = -110)
hub 3-1:1.0: cannot reset port 1 (err = -110)
hub 3-1:1.0: cannot reset port 1 (err = -110)
hub 3-1:1.0: cannot reset port 1 (err = -110)
hub 3-1:1.0: cannot reset port 1 (err = -110)
hub 3-1:1.0: cannot reset port 1 (err = -110)
hub 3-1:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
hub 3-1:1.0: cannot disable port 1 (err = -110)
hub 3-1:1.0: cannot reset port 1 (err = -110)
hub 3-1:1.0: cannot reset port 1 (err = -110)
hub 3-1:1.0: cannot reset port 1 (err = -110)
hub 3-1:1.0: cannot reset port 1 (err = -110)
hub 3-1:1.0: cannot reset port 1 (err = -110)
hub 3-1:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
hub 3-1:1.0: cannot disable port 1 (err = -110)
hub 3-1:1.0: cannot reset port 1 (err = -110)
hub 3-1:1.0: cannot reset port 1 (err = -110)
hub 3-1:1.0: cannot reset port 1 (err = -110)
hub 3-1:1.0: cannot reset port 1 (err = -110)
hub 3-1:1.0: cannot reset port 1 (err = -110)
hub 3-1:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
hub 3-1:1.0: cannot disable port 1 (err = -110)
hub 3-1:1.0: cannot disable port 1 (err = -110)
hub 3-1:1.0: hub_port_status failed (err = -110)

I have read that error -75 it is some kind of buffer overflow, i tried it on a 
windows and it works ok.

I running gentoo 
Linux contesa 2.6.17-gentoo #2 Wed Jun 28 17:52:56 CEST 2006 ppc 7447A, altivec 
supported GNU/Linux

kernel 2.6.17 with the usb fix applied

Any idea about how to fix it?.
Thanx in advance

David

Note You need to log in before you can comment on or make changes to this bug.