kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: poleyschen@gmail.com (Pol Eyschen)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Extend device driver?
Date: Sat, 10 Sep 2016 20:58:07 +0200	[thread overview]
Message-ID: <d2ffe694-cd13-fdd8-18d7-7b52a5d22d2d@gmail.com> (raw)
In-Reply-To: <20160910151412.GA9954@kroah.com>

On 10/09/16 17:14, Greg KH wrote:
> On Sat, Sep 10, 2016 at 04:41:34PM +0200, Pol Eyschen wrote:
>> Hi everyone,
>>
>> I want to implement some custom functions of my mouse (Madcatz RAT5) in
>> Linux, e.g custom DPI-values. As this requires writing over USB to the
>> firmware of the mouse I was thinking of writing a module to accomplish
>> this. However I don't want to reimplement a whole mouse-driver,so I
>> wanted to ask if there is a possibility of binding the device to 2
>> modules or having my module extend usbhid, so that my module would only
>> be used to perform these custom operations while usbhid stays in charge
>> of the whole "mouse business".
>
> Please just use the hidraw userspace driver/library instead, that way
> you don't have to unbind the kernel driver and everything should work
> just fine without having to touch the kernel at all.
>
> Hope this helps,
>
> greg k-h
>

I looked at hidraw, unfortunately it doesn't work for me, as the mouse 
expects control URBs with proprietary requests, hence my thought for a 
kernel module.

  parent reply	other threads:[~2016-09-10 18:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-10 14:41 Extend device driver? Pol Eyschen
2016-09-10 15:14 ` Greg KH
2016-09-10 17:53   ` Daniel.
2016-09-10 18:58   ` Pol Eyschen [this message]
2016-09-11  7:43     ` Greg KH

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=d2ffe694-cd13-fdd8-18d7-7b52a5d22d2d@gmail.com \
    --to=poleyschen@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).