From: Greg KH <greg@kroah.com>
To: Jeffrey Lim <jfs.world@gmail.com>
Cc: linux-kernel@vger.kernel.org, linux-usb-devel@lists.sourceforge.net
Subject: Re: help with writing a usb mouse driver
Date: Tue, 30 Nov 2004 16:34:31 -0800 [thread overview]
Message-ID: <20041201003431.GC27772@kroah.com> (raw)
In-Reply-To: <4b3125cc041127073956f967de@mail.gmail.com>
On Sat, Nov 27, 2004 at 11:39:37PM +0800, Jeffrey Lim wrote:
> Note: pls cc me in any replies as i'm not subscribed to the list.
>
> hi guys, i've been trying to write a usb mouse driver for a custom
> mouse, but i'm getting stuck.
>
> I previously started out with trying to hack usbmouse.c, but
> apparently after a wild goose chase, it seems that that is not the
> recommended path to take. It supposedly conflicts with the hid driver,
> though in what way i do not know. (If somebody could enlighten me on
> this, pls do. Documentation/input/input.txt does not really explain
> why).
The Kconfig documentation for that driver should explain why.
usbmouse.c is for USB Boot Protocol Mice only. Only if you understand
what this protocol is, should you use that driver. Everyone else should
use the hid driver.
> So now it almost seems as if the only code i have for analysis and as
> a sample is the hid code (hid-core.c, hid-input.c, i assume). But the
> problem for me is that this code is too complex for me, and really
> doesn't offer the easiest way to get started on this project. I'm not
> too sure usb-skeleton.c does it either, because it doesn't have the
> code for interfacing with the input layer.
What kind of usb mouse do you have? Is it a HID mouse? Or some custom
protocol?
Also, this should be discussed on the linux-usb-devel mailing list,
there are more Linux usb developers there than on linux-kernel.
> I'm using kernel 2.4.20.
Ick, why? What's wrong with the latest 2.4 or 2.6 kernel?
thanks,
greg k-h
prev parent reply other threads:[~2004-12-01 0:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-27 15:39 help with writing a usb mouse driver Jeffrey Lim
2004-12-01 0:34 ` Greg KH [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=20041201003431.GC27772@kroah.com \
--to=greg@kroah.com \
--cc=jfs.world@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
/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