All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Zephaniah E. Hull" <warp@babylon.d2dc.net>
To: Vojtech Pavlik <vojtech@suse.cz>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org,
	Andrew Morton <akpm@osdl.org>
Subject: Re: 2.6.2-rc2-mm1
Date: Fri, 30 Jan 2004 07:41:42 -0500	[thread overview]
Message-ID: <20040130124141.GA1226@babylon.d2dc.net> (raw)
In-Reply-To: <20040130112039.GA1731@ucw.cz>


[-- Attachment #1.1: Type: text/plain, Size: 1660 bytes --]

On Fri, Jan 30, 2004 at 12:20:39PM +0100, Vojtech Pavlik wrote:
> On Fri, Jan 30, 2004 at 06:18:05AM -0500, Zephaniah E. Hull wrote:
> > On Fri, Jan 30, 2004 at 12:02:05PM +0100, Vojtech Pavlik wrote:
> > > On Fri, Jan 30, 2004 at 05:48:29AM -0500, Zephaniah E. Hull wrote:
> > > > On Tue, Jan 27, 2004 at 11:34:02PM -0800, Andrew Morton wrote:
> > > > > 
> > > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.2-rc2/2.6.2-rc2-mm1/
> > > > > 
> > > > > - From now on, -mm kernels will contain the latest contents of:
> > > > > 
> > > > > 	Vojtech's tree:		input.patch
> > > > 
> > > > This one seems to have a rather problematic patch, which I can't find
> > > > any explanation for.
> > > 
> > > There is another revision of the same mouse from A4Tech (owned by
> > > Jaroslav Kysela), that reports itself as Cypress and has the buttons a
> > > bit differently.
> > > 
> > > If it indeed collides with your mouse, then we need somehow to specify
> > > which button carries the wheel information in the quirk list.
> > 
> > Ugh, that is not fun, it does indeed conflict.
> > How about HID_QUIRK_2WHEEL_MOUSE_HACK_EXTRA and
> > HID_QUIRK_2WHEEL_MOUSE_HACK_BACK as quirk names?
> 
> Sounds OK.

Ok, attached.
It is against 2.6.2-rc2-mm2, and has been tested.
(Yes, I know about the line lengths.  If they are a problem, I can
tweak.)

-- 
	1024D/E65A7801 Zephaniah E. Hull <warp@babylon.d2dc.net>
	   92ED 94E4 B1E6 3624 226D  5727 4453 008B E65A 7801
	    CCs of replies from mailing lists are requested.

Stubborness will get you where self-esteem won't let you go.
  -- Queen Of Swords in the SDM.

[-- Attachment #1.2: hid_a4tech_cypress.diff --]
[-- Type: text/plain, Size: 3208 bytes --]

diff -ur linux-2.6.2-rc2-mm2.orig/drivers/usb/input/hid-core.c linux-2.6.2-rc2-mm2/drivers/usb/input/hid-core.c
--- linux-2.6.2-rc2-mm2.orig/drivers/usb/input/hid-core.c	2004-01-30 06:10:39.000000000 -0500
+++ linux-2.6.2-rc2-mm2/drivers/usb/input/hid-core.c	2004-01-30 06:35:21.000000000 -0500
@@ -1425,8 +1425,8 @@
 	{ USB_VENDOR_ID_ATEN, USB_DEVICE_ID_ATEN_4PORTKVMC, HID_QUIRK_NOGET },
 	{ USB_VENDOR_ID_TANGTOP, USB_DEVICE_ID_TANGTOP_USBPS2, HID_QUIRK_NOGET },
 
-	{ USB_VENDOR_ID_A4TECH, USB_DEVICE_ID_A4TECH_WCP32PU, HID_QUIRK_2WHEEL_MOUSE_HACK },
-	{ USB_VENDOR_ID_CYPRESS, USB_DEVICE_ID_CYPRESS_MOUSE, HID_QUIRK_2WHEEL_MOUSE_HACK },
+	{ USB_VENDOR_ID_A4TECH, USB_DEVICE_ID_A4TECH_WCP32PU, HID_QUIRK_2WHEEL_MOUSE_HACK_BACK },
+	{ USB_VENDOR_ID_CYPRESS, USB_DEVICE_ID_CYPRESS_MOUSE, HID_QUIRK_2WHEEL_MOUSE_HACK_EXTRA },
 
 	{ USB_VENDOR_ID_ALPS, USB_DEVICE_ID_IBM_GAMEPAD, HID_QUIRK_BADPAD },
 	{ USB_VENDOR_ID_HAPP, USB_DEVICE_ID_UGCI_DRIVING, HID_QUIRK_BADPAD | HID_QUIRK_MULTI_INPUT },
diff -ur linux-2.6.2-rc2-mm2.orig/drivers/usb/input/hid-input.c linux-2.6.2-rc2-mm2/drivers/usb/input/hid-input.c
--- linux-2.6.2-rc2-mm2.orig/drivers/usb/input/hid-input.c	2004-01-30 06:10:39.000000000 -0500
+++ linux-2.6.2-rc2-mm2/drivers/usb/input/hid-input.c	2004-01-30 06:38:45.000000000 -0500
@@ -377,7 +377,8 @@
 
 	set_bit(usage->type, input->evbit);
 	if ((usage->type == EV_REL)
-			&& (device->quirks & HID_QUIRK_2WHEEL_MOUSE_HACK)
+			&& (device->quirks & (HID_QUIRK_2WHEEL_MOUSE_HACK_BACK
+				| HID_QUIRK_2WHEEL_MOUSE_HACK_EXTRA))
 			&& (usage->code == REL_WHEEL)) {
 		set_bit(REL_HWHEEL, bit);
 	}
@@ -431,8 +432,8 @@
 
 	input_regs(input, regs);
 
-	if ((hid->quirks & HID_QUIRK_2WHEEL_MOUSE_HACK)
-			&& (usage->code == BTN_BACK || usage->code == BTN_EXTRA)) {
+	if (((hid->quirks & HID_QUIRK_2WHEEL_MOUSE_HACK_EXTRA) && (usage->code == BTN_EXTRA))
+		|| (hid->quirks & HID_QUIRK_2WHEEL_MOUSE_HACK_BACK) && (usage->code == BTN_BACK)) {
 		if (value)
 			hid->quirks |= HID_QUIRK_2WHEEL_MOUSE_HACK_ON;
 		else
diff -ur linux-2.6.2-rc2-mm2.orig/drivers/usb/input/hid.h linux-2.6.2-rc2-mm2/drivers/usb/input/hid.h
--- linux-2.6.2-rc2-mm2.orig/drivers/usb/input/hid.h	2004-01-30 05:54:18.000000000 -0500
+++ linux-2.6.2-rc2-mm2/drivers/usb/input/hid.h	2004-01-30 06:33:54.000000000 -0500
@@ -201,15 +201,16 @@
  * HID device quirks.
  */
 
-#define HID_QUIRK_INVERT		0x001
-#define HID_QUIRK_NOTOUCH		0x002
-#define HID_QUIRK_IGNORE		0x004
-#define HID_QUIRK_NOGET			0x008
-#define HID_QUIRK_HIDDEV		0x010
-#define HID_QUIRK_BADPAD		0x020
-#define HID_QUIRK_MULTI_INPUT		0x040
-#define HID_QUIRK_2WHEEL_MOUSE_HACK	0x080
-#define HID_QUIRK_2WHEEL_MOUSE_HACK_ON	0x100
+#define HID_QUIRK_INVERT			0x001
+#define HID_QUIRK_NOTOUCH			0x002
+#define HID_QUIRK_IGNORE			0x004
+#define HID_QUIRK_NOGET				0x008
+#define HID_QUIRK_HIDDEV			0x010
+#define HID_QUIRK_BADPAD			0x020
+#define HID_QUIRK_MULTI_INPUT			0x040
+#define HID_QUIRK_2WHEEL_MOUSE_HACK_BACK	0x080
+#define HID_QUIRK_2WHEEL_MOUSE_HACK_EXTRA	0x100
+#define HID_QUIRK_2WHEEL_MOUSE_HACK_ON		0x200
 
 /*
  * This is the global environment of the parser. This information is

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-01-30 12:41 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-28  7:34 2.6.2-rc2-mm1 Andrew Morton
2004-01-28  7:34 ` 2.6.2-rc2-mm1 Andrew Morton
2004-01-28  7:55 ` 2.6.2-rc2-mm1 Mike Fedyk
2004-01-28  7:55   ` 2.6.2-rc2-mm1 Mike Fedyk
2004-01-28  8:18 ` ALSA noise (was: Re: 2.6.2-rc2-mm1) Joshua Kwan
2004-01-28  8:36 ` 2.6.2-rc2-mm1 Han Boetes
2004-01-30  2:51   ` 2.6.2-rc2-mm1 Adrian Bunk
2004-01-30  6:00     ` 2.6.2-rc2-mm1 Han Boetes
2004-02-04  8:22       ` 2.6: Voyager requires SMP? Adrian Bunk
2004-02-04 17:04         ` James Bottomley
2004-01-28  9:41 ` 2.6.2-rc2-mm1 Christoph Hellwig
2004-01-28  9:41   ` 2.6.2-rc2-mm1 Christoph Hellwig
2004-01-28 19:38   ` 2.6.2-rc2-mm1 David S. Miller
2004-01-28 19:38     ` 2.6.2-rc2-mm1 David S. Miller
2004-01-28 12:08 ` 2.6.2-rc2-mm1 Ramon Rey Vicente
2004-01-28 12:08 ` 2.6.2-rc2-mm1 Ralf Hildebrandt
2004-01-28 12:13 ` 2.6.2-rc2-mm1 (Breakage?) David Martínez Moreno
2004-01-28 12:13   ` David Martínez Moreno
2004-01-28 12:25   ` Alistair John Strachan
2004-01-28 12:25     ` Alistair John Strachan
2004-01-28 13:33     ` Fix sleep_on abuse in XFS, Was: " Christoph Hellwig
2004-01-28 13:33       ` Christoph Hellwig
2004-01-28 14:28       ` David Woodhouse
2004-01-28 14:28         ` David Woodhouse
2004-01-28 15:02         ` Christoph Hellwig
2004-01-28 15:02           ` Christoph Hellwig
2004-01-29  6:20           ` Nathan Scott
2004-01-29  6:20             ` Nathan Scott
2004-01-29 23:37     ` Alexander Hoogerhuis
2004-01-29 23:37       ` Alexander Hoogerhuis
2004-01-30  1:08       ` Daniel Andersen
2004-01-28 12:17 ` 2.6.2-rc2-mm1 Nikita Danilov
2004-01-28 12:17   ` 2.6.2-rc2-mm1 Nikita Danilov
2004-01-28 13:08 ` 2.6.2-rc2-mm1 Stian Jordet
2004-01-28 13:08   ` 2.6.2-rc2-mm1 Stian Jordet
2004-01-28 15:32 ` 2.6.2-rc2-mm1 Randy.Dunlap
2004-01-28 15:32   ` 2.6.2-rc2-mm1 Randy.Dunlap
2004-01-28 21:25   ` 2.6.2-rc2-mm1 Andrew Morton
2004-01-28 21:25     ` 2.6.2-rc2-mm1 Andrew Morton
2004-01-28 17:02 ` [BUG] [2.6.2-rc2-mm1] Badness in try_to_wake_up at kernel/sched.c:722 (was Re: 2.6.2-rc2-mm1) Ramon Rey Vicente
2004-01-28 19:55 ` 2.6.2-rc2-mm1 Torrey Hoffman
2004-01-28 19:55   ` 2.6.2-rc2-mm1 Torrey Hoffman
2004-01-28 20:04 ` 2.6.2-rc2-mm1 Olaf Hering
2004-01-29  0:34   ` 2.6.2-rc2-mm1 Adrian Bunk
2004-01-29 16:15 ` 2.6.2-rc2-mm1 Zephaniah E. Hull
2004-01-30 10:48 ` 2.6.2-rc2-mm1 Zephaniah E. Hull
2004-01-30 11:02   ` 2.6.2-rc2-mm1 Vojtech Pavlik
2004-01-30 11:02     ` 2.6.2-rc2-mm1 Vojtech Pavlik
2004-01-30 11:18     ` 2.6.2-rc2-mm1 Zephaniah E. Hull
2004-01-30 11:20       ` 2.6.2-rc2-mm1 Vojtech Pavlik
2004-01-30 11:20         ` 2.6.2-rc2-mm1 Vojtech Pavlik
2004-01-30 12:41         ` Zephaniah E. Hull [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-01-28 15:06 2.6.2-rc2-mm1 Antony Suter
2004-01-28 20:46 ` 2.6.2-rc2-mm1 Mike Fedyk

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=20040130124141.GA1226@babylon.d2dc.net \
    --to=warp@babylon.d2dc.net \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=vojtech@suse.cz \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.