summaryrefslogtreecommitdiff
path: root/alps.patch
diff options
context:
space:
mode:
Diffstat (limited to 'alps.patch')
-rw-r--r--alps.patch33
1 files changed, 17 insertions, 16 deletions
diff --git a/alps.patch b/alps.patch
index aeed3d4..fa7864c 100644
--- a/alps.patch
+++ b/alps.patch
@@ -53,13 +53,13 @@ initial announcement have not been dealt with:
linux-petero/drivers/input/mouse/Makefile | 2
linux-petero/drivers/input/mouse/alps.c | 140 ++++++++++++++++++++++++
linux-petero/drivers/input/mouse/alps.h | 17 ++
- linux-petero/drivers/input/mouse/psmouse-base.c | 7 +
+ linux-petero/drivers/input/mouse/psmouse-base.c | 8 +
linux-petero/drivers/input/mouse/psmouse.h | 1
- 5 files changed, 166 insertions(+), 1 deletion(-)
+ 5 files changed, 167 insertions(+), 1 deletion(-)
diff -puN drivers/input/mouse/Makefile~alps drivers/input/mouse/Makefile
---- linux/drivers/input/mouse/Makefile~alps 2003-11-30 13:43:39.000000000 +0100
-+++ linux-petero/drivers/input/mouse/Makefile 2003-12-16 20:17:12.000000000 +0100
+--- linux/drivers/input/mouse/Makefile~alps 2004-01-10 21:39:13.000000000 +0100
++++ linux-petero/drivers/input/mouse/Makefile 2004-01-10 21:39:13.000000000 +0100
@@ -14,4 +14,4 @@ obj-$(CONFIG_MOUSE_PC9800) += 98busmouse
obj-$(CONFIG_MOUSE_PS2) += psmouse.o
obj-$(CONFIG_MOUSE_SERIAL) += sermouse.o
@@ -67,8 +67,8 @@ diff -puN drivers/input/mouse/Makefile~alps drivers/input/mouse/Makefile
-psmouse-objs := psmouse-base.o logips2pp.o synaptics.o
+psmouse-objs := psmouse-base.o logips2pp.o alps.o synaptics.o
diff -puN drivers/input/mouse/alps.c~alps drivers/input/mouse/alps.c
---- linux/drivers/input/mouse/alps.c~alps 2003-11-30 13:43:39.000000000 +0100
-+++ linux-petero/drivers/input/mouse/alps.c 2003-12-16 20:20:59.000000000 +0100
+--- linux/drivers/input/mouse/alps.c~alps 2004-01-10 21:39:13.000000000 +0100
++++ linux-petero/drivers/input/mouse/alps.c 2004-01-10 21:39:13.000000000 +0100
@@ -0,0 +1,140 @@
+/*
+ * ALPS touchpad PS/2 mouse driver
@@ -211,8 +211,8 @@ diff -puN drivers/input/mouse/alps.c~alps drivers/input/mouse/alps.c
+ return 0;
+}
diff -puN drivers/input/mouse/alps.h~alps drivers/input/mouse/alps.h
---- linux/drivers/input/mouse/alps.h~alps 2003-11-30 13:43:39.000000000 +0100
-+++ linux-petero/drivers/input/mouse/alps.h 2003-11-30 13:43:39.000000000 +0100
+--- linux/drivers/input/mouse/alps.h~alps 2004-01-10 21:39:13.000000000 +0100
++++ linux-petero/drivers/input/mouse/alps.h 2004-01-10 21:39:13.000000000 +0100
@@ -0,0 +1,17 @@
+/*
+ * ALPS touchpad PS/2 mouse driver
@@ -232,8 +232,8 @@ diff -puN drivers/input/mouse/alps.h~alps drivers/input/mouse/alps.h
+int ALPS_process_byte(struct psmouse *psmouse, struct pt_regs *regs);
+#endif
diff -puN drivers/input/mouse/psmouse-base.c~alps drivers/input/mouse/psmouse-base.c
---- linux/drivers/input/mouse/psmouse-base.c~alps 2003-11-30 13:43:39.000000000 +0100
-+++ linux-petero/drivers/input/mouse/psmouse-base.c 2003-12-16 20:17:12.000000000 +0100
+--- linux/drivers/input/mouse/psmouse-base.c~alps 2004-01-10 21:39:13.000000000 +0100
++++ linux-petero/drivers/input/mouse/psmouse-base.c 2004-01-10 22:11:50.000000000 +0100
@@ -21,6 +21,7 @@
#include "psmouse.h"
#include "synaptics.h"
@@ -242,29 +242,30 @@ diff -puN drivers/input/mouse/psmouse-base.c~alps drivers/input/mouse/psmouse-ba
MODULE_AUTHOR("Vojtech Pavlik <vojtech@suse.cz>");
MODULE_DESCRIPTION("PS/2 mouse driver");
-@@ -177,6 +178,9 @@ static irqreturn_t psmouse_interrupt(str
+@@ -187,6 +188,10 @@ static irqreturn_t psmouse_interrupt(str
goto out;
}
-+ if (!psmouse_noext && !ALPS_process_byte(psmouse, regs))
++ if ((psmouse_max_proto > PSMOUSE_PS2) &&
++ !ALPS_process_byte(psmouse, regs))
+ goto out;
+
if (psmouse->pktcnt == 3 + (psmouse->type >= PSMOUSE_GENPS)) {
psmouse_process_packet(psmouse, regs);
psmouse->pktcnt = 0;
-@@ -479,6 +483,9 @@ static void psmouse_initialize(struct ps
+@@ -498,6 +503,9 @@ static void psmouse_initialize(struct ps
*/
psmouse_command(psmouse, param, PSMOUSE_CMD_SETSTREAM);
+
-+ if (!psmouse_noext)
++ if (psmouse_max_proto > PSMOUSE_PS2)
+ ALPS_initialize(psmouse);
}
/*
diff -puN drivers/input/mouse/psmouse.h~alps drivers/input/mouse/psmouse.h
---- linux/drivers/input/mouse/psmouse.h~alps 2003-11-30 13:43:39.000000000 +0100
-+++ linux-petero/drivers/input/mouse/psmouse.h 2003-12-16 20:17:12.000000000 +0100
+--- linux/drivers/input/mouse/psmouse.h~alps 2004-01-10 21:39:13.000000000 +0100
++++ linux-petero/drivers/input/mouse/psmouse.h 2004-01-10 21:39:13.000000000 +0100
@@ -9,6 +9,7 @@
#define PSMOUSE_CMD_GETID 0x02f2
#define PSMOUSE_CMD_SETRATE 0x10f3