From: Kari Hameenaho <khaho@koti.soon.fi>
To: linux-kernel@vger.kernel.org
Subject: Re: Logitech wheel and 2.5? (PS/2)
Date: Sat, 2 Nov 2002 22:54:48 +0200 [thread overview]
Message-ID: <20021102225448.6be90473.khaho@koti.soon.fi> (raw)
Gregoire Favre wrote:
>patched, but I got:
>
> drivers/input/mouse/psmouse.c drivers/input/mouse/psmouse.c: In
> function `psmouse_process_packet': drivers/input/mouse/psmouse.c:90:
> label `out' used but not defined make[3]: ***
> [drivers/input/mouse/psmouse.o] Error 1 make[2]: ***
> [drivers/input/mouse] Error 2 make[1]: *** [drivers/input] Error 2
make: *** [drivers] Error 2
There was a line +out: in my patch, maybe you did not apply it correctly
or the mail caused some changes to patch part. Note that it is against
2.5.45. All os the patch is in one function, so it is quite possible to do
patching manually (it is only 5 lines anyway), if it somehow gets
corrupted.
Here it is again:
--- linux-2.5.45/drivers/input/mouse/psmouse.c Thu Oct 31 02:42:20 2002
+++ linux-2.5.45-usb/drivers/input/mouse/psmouse.c Fri Nov 1 22:28:25 2002
@@ -85,6 +85,11 @@
if (psmouse->type == PSMOUSE_PS2PP || psmouse->type == PSMOUSE_PS2TPP) {
+ /* Logitech radio/battery status or strangeness ?????? */
+ if (packet[0] == 0xd8) {
+ goto out;
+ }
+
if ((packet[0] & 0x40) == 0x40 && (int) packet[1] - (int) ((packet[0] & 0x10) << 4) > 191 ) {
switch (((packet[1] >> 4) & 0x03) | ((packet[0] >> 2) & 0xc0)) {
@@ -157,6 +162,7 @@
input_report_rel(dev, REL_X, packet[1] ? (int) packet[1] - (int) ((packet[0] << 4) & 0x100) : 0);
input_report_rel(dev, REL_Y, packet[2] ? (int) ((packet[0] << 3) & 0x100) - (int) packet[2] : 0);
+out:
input_sync(dev);
}
next reply other threads:[~2002-11-02 20:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-02 20:54 Kari Hameenaho [this message]
2002-11-02 21:40 ` Gregoire Favre
-- strict thread matches above, loose matches on Subject: below --
2002-11-02 9:03 Kari Hameenaho
2002-11-02 10:16 ` Gregoire Favre
2002-10-31 22:34 Gregoire Favre
2002-11-01 10:41 ` Thomas Molina
2002-11-01 11:37 ` Gregoire Favre
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=20021102225448.6be90473.khaho@koti.soon.fi \
--to=khaho@koti.soon.fi \
--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
all inboxes | Powered by JetHome®