Re: PROBLEM: conflicts with usbhid keyboard and ueagle-atm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 17 May 2010, Khanh-Dang Nguyen Thu Lam wrote:

> Hello all,
> 
> on a x86 system, a USB keyboard works as expected and so does a USB
> ueagle_atm DSL modem.  However, both devices are conflicting when
> plugged simultaneously.  Only the first plugged device works, while the
> second one does not.
> 
> (Please see the attachments for further details about the configuration.)
> 
> The issue was reproduced on one x86 machine, with a 2.6.33.4-vanilla
> kernel and a 2.6.24-vanilla kernel.  The aforementioned attachments and
> the following debug outputs were obtained with a 2.6.33.4 kernel.  The
> kernels were compiled with the only features mandatory for booting and
> reproducing the issue.
> 
> As far as I know, no similar issues have been reported before.  The
> following patch might be related to this issue:
> http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=04ea02f5746a2e01a38edae2de3eafc40eac17aa
> 
> 
> 
> The problem can be triggered in two different ways:
> Case 1: the USB DSL modem is plugged first; then, the USB keyboard is plugged.
> Case 2: the USB keyboard is plugged first; then, the USB DSL modem is plugged.
> 
> In both cases, if both devices are unplugged and re-plugged again in
> another order, then the issue appears again (the first re-plugged device
> works while the second one does not).
> 
> 
> * Output common in both cases
> 
> # Here is the relevant dmesg output *before* any USB device is plugged
> #
> udev: starting version 149
> usbcore: registered new interface driver usbfs
> usbcore: registered new interface driver hub
> usbcore: registered new device driver usb
> uhci_hcd: USB Universal Host Controller Interface driver
> PCI: setting IRQ 10 as level-triggered
> uhci_hcd 0000:00:1f.2: found PCI INT D -> IRQ 10
> uhci_hcd 0000:00:1f.2: sharing IRQ 10 with 0000:02:0b.0
> uhci_hcd 0000:00:1f.2: setting latency timer to 64
> uhci_hcd 0000:00:1f.2: UHCI Host Controller
> uhci_hcd 0000:00:1f.2: new USB bus registered, assigned bus number 1
> uhci_hcd 0000:00:1f.2: irq 10, io base 0x0000ef80
> usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
> usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
> usb usb1: Product: UHCI Host Controller
> usb usb1: Manufacturer: Linux 2.6.33.4 uhci_hcd
> usb usb1: SerialNumber: 0000:00:1f.2
> hub 1-0:1.0: USB hub found
> hub 1-0:1.0: 2 ports detected
> 
> 
> 
> * Case 1 (USB DSL modem first, then USB keyboard):
>  
> # Here are the relevant dmesg output
> #
> # The DSL modem is plugged here.
> #
> usb 1-2: new full speed USB device using uhci_hcd and address 2
> usb 1-2: New USB device found, idVendor=1110, idProduct=900f
> usb 1-2: New USB device strings: Mfr=0, Product=2, SerialNumber=3
> usb 1-2: Product: ADSL-USB Modem
> usb 1-2: SerialNumber: 00604C104F9E
> NET: Registered protocol family 8
> NET: Registered protocol family 20
> [ueagle-atm] driver ueagle 1.4 loaded
> usb 1-2: [ueagle-atm] ADSL device founded vid (0X1110) pid (0X900F) Rev (0X410B): Eagle I
> usb 1-2: reset full speed USB device using uhci_hcd and address 2
> usb 1-2: [ueagle-atm] using iso mode
> usb 1-2: [ueagle-atm] (re)booting started
> usbcore: registered new interface driver ueagle-atm
> usb 1-2: firmware: requesting ueagle-atm/DSPep.bin
> usb 1-2: [ueagle-atm] ATU-R firmware version : 44e2ea17
> usb 1-2: firmware: requesting ueagle-atm/CMVep.bin.v2
> usb 1-2: [Ueagle-atm] requesting firmware ueagle-atm/CMVep.bin.v2 failed, try to get older cmvs
> usb 1-2: firmware: requesting ueagle-atm/CMVep.bin
> usb 1-2: [Ueagle-atm] use deprecated cmvs version, please update your firmware
> usb 1-2: [ueagle-atm] modem started, waiting synchronization...
> usb 1-2: [ueagle-atm] modem operational
> #
> # The USB keyboard is plugged here
> #
> usb 1-1: new low speed USB device using uhci_hcd and address 3
> usb 1-1: New USB device found, idVendor=046d, idProduct=c315
> usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
> usb 1-1: Product: Logitech USB Keyboard
> usb 1-1: Manufacturer: Logitech
> usbcore: registered new interface driver hiddev
> input: Logitech Logitech USB Keyboard as /devices/pci0000:00/0000:00:1f.2/usb1/1-1/1-1:1.0/input/input1
> generic-usb 0003:046D:C315.0001: input,hidraw0: USB HID v1.10 Keyboard [Logitech Logitech USB Keyboard] on usb-0000:00:1f.2-1/input0
> usbcore: registered new interface driver usbhid
> usbhid: USB HID core driver
> usb 1-1: reset low speed USB device using uhci_hcd and address 3
> usb 1-1: reset low speed USB device using uhci_hcd and address 3
> usb 1-1: reset low speed USB device using uhci_hcd and address 3
> usb 1-1: reset low speed USB device using uhci_hcd and address 3
> usb 1-1: reset low speed USB device using uhci_hcd and address 3
> #
> # The last line keeps repeating.
> #
> # At this point, the Numlock indicator of the USB keyboard is on but the
> # keystrokes do not register.  The PS/2 keyboard keeps working, although
> # sluggishly.

Those repeating error messages are unfortunate.  At some point the 
driver should give up.  And maybe it should give an indication of _why_ 
the resets are needed.

> * Case 2 (USB keyboard first, then USB DSL modem):
> 
> # Relevant dmesg output
> #
> # The USB keyboard is plugged here.
> #
> usb 1-2: new low speed USB device using uhci_hcd and address 2
> usb 1-2: New USB device found, idVendor=046d, idProduct=c315
> usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
> usb 1-2: Product: Logitech USB Keyboard
> usb 1-2: Manufacturer: Logitech
> usbcore: registered new interface driver hiddev
> input: Logitech Logitech USB Keyboard as /devices/pci0000:00/0000:00:1f.2/usb1/1-2/1-2:1.0/input/input1
> generic-usb 0003:046D:C315.0001: input,hidraw0: USB HID v1.10 Keyboard [Logitech Logitech USB Keyboard] on usb-0000:00:1f.2-2/input0
> usbcore: registered new interface driver usbhid
> usbhid: USB HID core driver
> #
> # The USB DSL modem is plugged here.
> #
> usb 1-1: new full speed USB device using uhci_hcd and address 3
> usb 1-1: New USB device found, idVendor=1110, idProduct=9010
> usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
> NET: Registered protocol family 8
> NET: Registered protocol family 20
> [ueagle-atm] driver ueagle 1.4 loaded
> usb 1-1: [ueagle-atm] ADSL device founded vid (0X1110) pid (0X9010) Rev (0X4000): Eagle I
> usb 1-1: reset full speed USB device using uhci_hcd and address 3
> usb 1-1: [ueagle-atm] pre-firmware device, uploading firmware
> usb 1-1: [ueagle-atm] loading firmware ueagle-atm/eagleI.fw
> usbcore: registered new interface driver ueagle-atm
> usb 1-1: firmware: requesting ueagle-atm/eagleI.fw
> usb 1-1: [ueagle-atm] firmware uploaded
> usb 1-1: USB disconnect, address 3
> usb 1-1: new full speed USB device using uhci_hcd and address 4
> usb 1-1: New USB device found, idVendor=1110, idProduct=900f
> usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=3
> usb 1-1: Product: ADSL-USB Modem
> usb 1-1: SerialNumber: 00604C104F9E
> usb 1-1: [ueagle-atm] ADSL device founded vid (0X1110) pid (0X900F) Rev (0X410B): Eagle I
> usb 1-1: reset full speed USB device using uhci_hcd and address 4
> usb 1-1: [ueagle-atm] using iso mode
> usb 1-1: [ueagle-atm] (re)booting started
> ATM dev 0: usbatm_submit_urb: urb 0xcfa8abe0 submission failed (-28)!
> ATM dev 0: usbatm_submit_urb: urb 0xcfa8ab20 submission failed (-28)!
> ATM dev 0: usbatm_submit_urb: urb 0xcfa8aa60 submission failed (-28)!
> ATM dev 0: usbatm_submit_urb: urb 0xcfa8a9a0 submission failed (-28)!
> ATM dev 0: usbatm_submit_urb: urb 0xcfa8a9a0 submission failed (-28)!
> ATM dev 0: usbatm_submit_urb: urb 0xcfa8a9a0 submission failed (-28)!
> ATM dev 0: usbatm_submit_urb: urb 0xcfa8a9a0 submission failed (-28)!
> ATM dev 0: usbatm_submit_urb: urb 0xcfa8a9a0 submission failed (-28)!
> ATM dev 0: usbatm_submit_urb: urb 0xcfa8a9a0 submission failed (-28)!
> ATM dev 0: usbatm_submit_urb: urb 0xcfa8a9a0 submission failed (-28)!
> usb 1-1: firmware: requesting ueagle-atm/DSPep.bin
> usb 1-1: [ueagle-atm] ATU-R firmware version : 44e2ea17
> usb 1-1: firmware: requesting ueagle-atm/CMVep.bin.v2
> usb 1-1: [Ueagle-atm] requesting firmware ueagle-atm/CMVep.bin.v2 failed, try to get older cmvs
> usb 1-1: firmware: requesting ueagle-atm/CMVep.bin
> usb 1-1: [Ueagle-atm] use deprecated cmvs version, please update your firmware
> usb 1-1: [ueagle-atm] modem started, waiting synchronization...
> usbatm_submit_urb: 44 callbacks suppressed
> ATM dev 0: usbatm_submit_urb: urb 0xcfa8a9a0 submission failed (-28)!
> ATM dev 0: usbatm_submit_urb: urb 0xcfa8a9a0 submission failed (-28)!
> #
> # The last lines keep repeating,
> #
> # until:
> #
> ATM dev 0: usbatm_submit_urb: urb 0xcfa8a9a0 submission failed (-28)!
> ATM dev 0: usbatm_submit_urb: urb 0xcfa8a9a0 submission failed (-28)!
> usb 1-1: [ueagle-atm] modem operational
> #
> # At this point, although the previous message suggests the opposite,
> # the USB modem does not work.
> #
> usbatm_submit_urb: 42 callbacks suppressed
> ATM dev 0: usbatm_submit_urb: urb 0xcfa8a9a0 submission failed (-28)!
> ATM dev 0: usbatm_submit_urb: urb 0xcfa8a9a0 submission failed (-28)!
> #
> # The last line keeps repeating.
> #
> # At this point, the USB modem does not work as usual.
> # The USB keyboard works as expected.

-28 is -ENOSPC, which means there is not enough bandwidth available on 
the USB bus for both devices to run at the same time.

If you have other USB ports available, you should try plugging one of 
the devices into them.  UHCI controllers usually have only one or two 
ports, so any other ports will be on a different bus.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux