From: Adam Nielsen <a.nielsen@shikadi.net>
To: "Rick L. Vinyard, Jr." <rvinyard@cs.nmsu.edu>
Cc: Linux USB <linux-usb@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: Blacklisting a usbhid device
Date: Wed, 22 Jul 2009 08:33:04 +1000 [thread overview]
Message-ID: <4A664220.5070503@shikadi.net> (raw)
In-Reply-To: <d1351198778762a135751934d1977539.squirrel@intranet.cs.nmsu.edu>
> Any suggestions on how to either work within the usbhid framework or how
> to get usbhid to stop claiming the device?
>From userland you can get the usbhid driver to release the device like this:
cd /sys/bus/usb/drivers/usbhid
echo '9-1:1.0' > unbind
Where '9-1:1.0' is the device you want to release. Presumably you could do
the same thing on the kernel side when your driver is loaded. This would give
better functionality, in that the usbhid driver would handle basic
functionality if your driver isn't loaded, but as soon as your driver was
loaded the extra functionality would become available.
Of course this bypasses usbhid's functionality. I imagine it would be better
to write a hid driver and let usbhid handle the USB side of things. Have a
look in drivers/hid/ for some hid driver examples that do this.
Cheers,
Adam.
prev parent reply other threads:[~2009-07-21 23:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-21 20:40 Blacklisting a usbhid device Rick L. Vinyard, Jr.
2009-07-21 21:39 ` Jiri Slaby
2009-07-21 22:33 ` Adam Nielsen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A664220.5070503@shikadi.net \
--to=a.nielsen@shikadi.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=rvinyard@cs.nmsu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox