From: Osamu Tomita <tomita@cinet.co.jp>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] 2.5.27 Logitech Busmouse new driver FIX
Date: Mon, 22 Jul 2002 20:55:00 +0900 [thread overview]
Message-ID: <3D3BF294.39BC26F6@cinet.co.jp> (raw)
[-- Attachment #1: Type: text/plain, Size: 115 bytes --]
Hi.
2.5.26-27 Logitech Busmouse driver doesn't work.
This patch fix it.
--
Osamu Tomita
E-mail: tomita@cinet.co.jp
[-- Attachment #2: linux-2.5.27-logibm.patch --]
[-- Type: application/octet-stream, Size: 1111 bytes --]
--- logibm.c.AT Sun Jul 21 04:11:20 2002
+++ logibm.c.lkml Mon Jul 22 16:58:22 2002
@@ -125,13 +125,14 @@
outb(LOGIBM_READ_Y_HIGH, LOGIBM_CONTROL_PORT);
buttons = inb(LOGIBM_DATA_PORT);
dy |= (buttons & 0xf) << 4;
- buttons = ~buttons;
+ buttons = ~buttons >> 5;
input_report_rel(&logibm_dev, REL_X, dx);
- input_report_rel(&logibm_dev, REL_Y, 255 - dy);
- input_report_key(&logibm_dev, BTN_MIDDLE, buttons & 1);
- input_report_key(&logibm_dev, BTN_LEFT, buttons & 2);
- input_report_key(&logibm_dev, BTN_RIGHT, buttons & 4);
+ input_report_rel(&logibm_dev, REL_Y, dy);
+ input_report_key(&logibm_dev, BTN_RIGHT, buttons & 1);
+ input_report_key(&logibm_dev, BTN_MIDDLE, buttons & 2);
+ input_report_key(&logibm_dev, BTN_LEFT, buttons & 4);
+ outb(LOGIBM_ENABLE_IRQ, LOGIBM_CONTROL_PORT);
}
#ifndef MODULE
@@ -147,7 +148,7 @@
static int __init logibm_init(void)
{
- if (request_region(LOGIBM_BASE, LOGIBM_EXTENT, "logibm")) {
+ if (!request_region(LOGIBM_BASE, LOGIBM_EXTENT, "logibm")) {
printk(KERN_ERR "logibm.c: Can't allocate ports at %#x\n", LOGIBM_BASE);
return -EBUSY;
}
next reply other threads:[~2002-07-22 11:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-22 11:55 Osamu Tomita [this message]
2002-07-22 15:53 ` [PATCH] 2.5.27 Logitech Busmouse new driver FIX Vojtech Pavlik
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=3D3BF294.39BC26F6@cinet.co.jp \
--to=tomita@cinet.co.jp \
--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