public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ALPS: fix enabling hardware tapping
@ 2005-06-15  6:38 Dmitry Torokhov
  2005-06-15 11:15 ` Vojtech Pavlik
  2005-07-03 11:49 ` Peter Osterlund
  0 siblings, 2 replies; 7+ messages in thread
From: Dmitry Torokhov @ 2005-06-15  6:38 UTC (permalink / raw)
  To: Linus Torvalds, Vojtech Pavlik; +Cc: LKML, Andrew Morton

Hi Linus, Vojtech,

It looks like logic for enabling hardware tapping in ALPS driver was
inverted and we enable it only if it was already enabled by BIOS or
firmware.

I have a confirmation from one user that the patch below fixes the
problem for him and it might be beneficial if we could get it into
2.6.12.

Thanks!

-- 
Dmitry

===================================================================

Input: ALPS - try enabling tap mode if it was disabled, not if
       it is already enabled.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
---

 drivers/input/mouse/alps.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: work/drivers/input/mouse/alps.c
===================================================================
--- work.orig/drivers/input/mouse/alps.c
+++ work/drivers/input/mouse/alps.c
@@ -364,7 +364,7 @@ static int alps_reconnect(struct psmouse
 	if (alps_get_status(psmouse, param))
 		return -1;
 
-	if (param[0] & 0x04)
+	if (!(param[0] & 0x04))
 		alps_tap_mode(psmouse, 1);
 
 	if (alps_absolute_mode(psmouse)) {

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-07-04 11:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-15  6:38 [PATCH] ALPS: fix enabling hardware tapping Dmitry Torokhov
2005-06-15 11:15 ` Vojtech Pavlik
2005-07-03 11:49 ` Peter Osterlund
2005-07-03 20:34   ` Vojtech Pavlik
2005-07-03 23:28     ` Peter Osterlund
2005-07-04  6:25       ` Dmitry Torokhov
2005-07-04 10:58       ` Vojtech Pavlik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox