public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ivan Ukhov <uvsoft@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: UVSoft@gmail.com
Subject: Re: How to use an usb interface than is claimed by HID?
Date: Sun, 21 Jan 2007 02:47:15 +0300	[thread overview]
Message-ID: <45B2AA03.4070405@gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0701210006591.21127@twin.jikos.cz>

Jiri Kosina wrote:
> On Sat, 20 Jan 2007, Ivan Ukhov wrote:
>
>   
>> I'm writing a driver for an USB device that has one configuration with 
>> several interfacies and one of them is a HID interface. So when I check 
>> this interface whether it's claimed (usb_interface_claimed), I find out 
>> that it is, and it's claimed by the HID driver. So here is the question: 
>> how can I ask the HID driver to unclaim this very interface for me so 
>> that I can use it? The HID driver is needed for some other devices, so I 
>> can't just rmmod it.
>>     
>
> Hi Ivan,
>
> if I understand correctly what you need, wouldn't setting the 
> HID_QUIRK_IGNORE for a given tuple of idVendor and idProduct be enough? 
> (see hid_blacklist[] in drivers/usb/input/hid-core.c).
>
>   
No, it won't do. Imagine that I'm not able to modify the kernel with its 
drivers. It should work with usual kernel and HID driver. So I want my 
driver to ask the HID driver to free the interfaces or don't claim them 
at all. Mb there's an example of such a driver?.. obviously there are a 
lot of HID devices and mb a vendor one of them doesn't want to use HID 
driver for one of its interfaces to provide some additional features or 
something, so he should make the kernel use his driver instead of HID...

Does it make any sense?)

  reply	other threads:[~2007-01-20 23:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-20 18:56 How to use an usb interface than is claimed by HID? Ivan Ukhov
2007-01-20 23:09 ` Jiri Kosina
2007-01-20 23:47   ` Ivan Ukhov [this message]
2007-01-20 23:56     ` Jiri Kosina
2007-01-21  8:59       ` Ivan Ukhov
2007-01-21 13:01         ` Jiri Kosina
2007-01-21 14:01           ` Ivan Ukhov
2007-01-21 17:28           ` Jiri Kosina
2007-01-21 18:34             ` Ivan Ukhov
2007-01-23 12:57               ` Rolf Offermanns

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=45B2AA03.4070405@gmail.com \
    --to=uvsoft@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /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