Thread (8 messages) 8 messages, 5 authors, 2008-11-16

Re: USB hid blocks USB port in 2.6.28rc3

From: Andi Kleen <hidden>
Date: 2008-11-11 08:32:25

On Mon, Nov 10, 2008 at 07:45:28PM -0500, Alan Stern wrote:
On Tue, 11 Nov 2008, Andi Kleen wrote:
quoted
Hi,

I have a box here which has a couple of USB devices connected.
That includes several HID devices (keyboards, mouse) and a couple
of others including a USB powerswitch driven through a user space
program.

Now what happened is that I changed some of the HID devices
around (moving from a direct port to a hub) and also moved
the USB power switch from one port to another. But after that
the power switch didn't work anymore, just giving a flood 
of

usb 2-2: usbfs: interface 0 claimed by usbhid while 'sispm' sets config #1

(sispm is the user space driver)

Kernel is 2.6.28-rc3
This sounds like a userspace problem.  The sispm program should unbind 
usbhid from interface 0 before trying to set the config.
Can you please explain in layman's terms why usbhid does not 
unbind itself when it detects the removal of a device? 

Why should sispm need to unbind someone else?

-Andi

-- 
ak@linux.intel.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help