All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vojtech Pavlik <vojtech@suse.cz>
To: 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 12:02:05 +0100	[thread overview]
Message-ID: <20040130110205.GA1583@ucw.cz> (raw)
In-Reply-To: <20040130104829.GA2505@babylon.d2dc.net>

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.

> 
> Specificly:
> <snip>
> diff -Nru a/drivers/usb/input/hid-input.c b/drivers/usb/input/hid-input.c
> --- a/drivers/usb/input/hid-input.c	Thu Jan 29 22:57:25 2004
> +++ b/drivers/usb/input/hid-input.c	Thu Jan 29 22:57:25 2004
> @@ -432,20 +432,21 @@
>  	input_regs(input, regs);
>  
>  	if ((hid->quirks & HID_QUIRK_2WHEEL_MOUSE_HACK)
> -			&& (usage->code == BTN_BACK)) {
> +			&& (usage->code == BTN_BACK || usage->code == BTN_EXTRA)) {
>  		if (value)
>  			hid->quirks |= HID_QUIRK_2WHEEL_MOUSE_HACK_ON;
>  		else
>  			hid->quirks &= ~HID_QUIRK_2WHEEL_MOUSE_HACK_ON;
>  		return;
>  	}
> <snip>
> 
> This seems to be due to trying to use the same flag for
> USB_DEVICE_ID_CYPRESS_MOUSE as well, however this is very wrong.
> 
> The original user of HID_QUIRK_2WHEEL_MOUSE_HACK,
> USB_DEVICE_ID_A4TECH_WCP32PU, actually /HAS/ a button labeled BTN_EXTRA,
> which after this patch can no longer even be used.
> 
> The only proper approach is to rename HID_QUIRK_2WHEEL_MOUSE_HACK and
> add a new one for the Cypress mouse as well.
> 
> If need be I can generate such a patch, however I will need to know what
> to generate it against.
> 
> Zephaniah E. Hull.
> (Original author of the HID_QUIRK_2WHEEL_MOUSE_HACK patch.)
> 
> -- 
> 	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.
> 
> If I have trouble installing Linux, something is wrong. Very wrong.
>   -- Linus Torvalds on l-k.



-- 
Vojtech Pavlik
SuSE Labs, SuSE CR

WARNING: multiple messages have this Message-ID (diff)
From: Vojtech Pavlik <vojtech@suse.cz>
To: 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 12:02:05 +0100	[thread overview]
Message-ID: <20040130110205.GA1583@ucw.cz> (raw)
In-Reply-To: <20040130104829.GA2505@babylon.d2dc.net>

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.

> 
> Specificly:
> <snip>
> diff -Nru a/drivers/usb/input/hid-input.c b/drivers/usb/input/hid-input.c
> --- a/drivers/usb/input/hid-input.c	Thu Jan 29 22:57:25 2004
> +++ b/drivers/usb/input/hid-input.c	Thu Jan 29 22:57:25 2004
> @@ -432,20 +432,21 @@
>  	input_regs(input, regs);
>  
>  	if ((hid->quirks & HID_QUIRK_2WHEEL_MOUSE_HACK)
> -			&& (usage->code == BTN_BACK)) {
> +			&& (usage->code == BTN_BACK || usage->code == BTN_EXTRA)) {
>  		if (value)
>  			hid->quirks |= HID_QUIRK_2WHEEL_MOUSE_HACK_ON;
>  		else
>  			hid->quirks &= ~HID_QUIRK_2WHEEL_MOUSE_HACK_ON;
>  		return;
>  	}
> <snip>
> 
> This seems to be due to trying to use the same flag for
> USB_DEVICE_ID_CYPRESS_MOUSE as well, however this is very wrong.
> 
> The original user of HID_QUIRK_2WHEEL_MOUSE_HACK,
> USB_DEVICE_ID_A4TECH_WCP32PU, actually /HAS/ a button labeled BTN_EXTRA,
> which after this patch can no longer even be used.
> 
> The only proper approach is to rename HID_QUIRK_2WHEEL_MOUSE_HACK and
> add a new one for the Cypress mouse as well.
> 
> If need be I can generate such a patch, however I will need to know what
> to generate it against.
> 
> Zephaniah E. Hull.
> (Original author of the HID_QUIRK_2WHEEL_MOUSE_HACK patch.)
> 
> -- 
> 	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.
> 
> If I have trouble installing Linux, something is wrong. Very wrong.
>   -- Linus Torvalds on l-k.



-- 
Vojtech Pavlik
SuSE Labs, SuSE CR
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

  reply	other threads:[~2004-01-30 11:01 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   ` Vojtech Pavlik [this message]
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         ` 2.6.2-rc2-mm1 Zephaniah E. Hull
  -- 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=20040130110205.GA1583@ucw.cz \
    --to=vojtech@suse.cz \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.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 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.