From: Peter Osterlund <petero2@telia.com>
To: Pavel Machek <pavel@suse.cz>
Cc: Linus Torvalds <torvalds@osdl.org>,
Vojtech Pavlik <vojtech@suse.cz>,
linux-kernel@vger.kernel.org
Subject: Re: Broken synaptics mouse..
Date: 01 Oct 2003 17:38:23 +0200 [thread overview]
Message-ID: <m2smmdj7dc.fsf@p4.localdomain> (raw)
In-Reply-To: <20031001100334.GA398@elf.ucw.cz>
Pavel Machek <pavel@suse.cz> writes:
> > I dropped the "synaptics_optional" patch, because there should not be any
> > need for the config option now that we have backwards compatibility by
> > default.
>
> I believe synaptics support caused enough problems already that we
> *want* it optional.
In that case, what do you think about this patch that implements the
config option properly and also updates the help text:
linux-petero/drivers/input/mouse/Kconfig | 12 +++++-------
linux-petero/drivers/input/mouse/Makefile | 3 ++-
linux-petero/drivers/input/mouse/synaptics.c | 4 ----
linux-petero/drivers/input/mouse/synaptics.h | 7 +++++++
4 files changed, 14 insertions(+), 12 deletions(-)
diff -puN drivers/input/mouse/Kconfig~synaptics-config-cleanup drivers/input/mouse/Kconfig
--- linux/drivers/input/mouse/Kconfig~synaptics-config-cleanup 2003-09-28 07:07:29.000000000 +0200
+++ linux-petero/drivers/input/mouse/Kconfig 2003-09-28 07:07:29.000000000 +0200
@@ -35,13 +35,11 @@ config MOUSE_PS2_SYNAPTICS
Say Y here if you have a Synaptics TouchPad connected to your system.
This touchpad is found on many modern laptop computers.
- Note that you also need a user space driver to interpret the data
- generated by the kernel. A compatible driver for XFree86 is available
- from http://w1.894.telia.com/~u89404340/touchpad/index.html
-
- The gpm program is not yet able to interpret the data from this
- driver, so if you need to use the touchpad in the console, you have to
- say N for now.
+ Note that you also need a user space driver to take advantage of the
+ advanced features of the touchpad. A compatible driver for XFree86 is
+ available from http://w1.894.telia.com/~u89404340/touchpad/index.html
+ and a new version of GPM is available from
+ http://www.geocities.com/dt_or/gpm/gpm.html
config MOUSE_SERIAL
tristate "Serial mouse"
diff -puN drivers/input/mouse/Makefile~synaptics-config-cleanup drivers/input/mouse/Makefile
--- linux/drivers/input/mouse/Makefile~synaptics-config-cleanup 2003-09-28 07:07:29.000000000 +0200
+++ linux-petero/drivers/input/mouse/Makefile 2003-09-28 07:07:29.000000000 +0200
@@ -14,4 +14,5 @@ obj-$(CONFIG_MOUSE_PC9800) += 98busmouse
obj-$(CONFIG_MOUSE_PS2) += psmouse.o
obj-$(CONFIG_MOUSE_SERIAL) += sermouse.o
-psmouse-objs := psmouse-base.o logips2pp.o synaptics.o
+psmouse-objs := psmouse-base.o logips2pp.o
+psmouse-$(CONFIG_MOUSE_PS2_SYNAPTICS) += synaptics.o
diff -puN drivers/input/mouse/synaptics.c~synaptics-config-cleanup drivers/input/mouse/synaptics.c
--- linux/drivers/input/mouse/synaptics.c~synaptics-config-cleanup 2003-09-28 07:07:29.000000000 +0200
+++ linux-petero/drivers/input/mouse/synaptics.c 2003-09-28 07:07:29.000000000 +0200
@@ -375,10 +375,6 @@ int synaptics_init(struct psmouse *psmou
{
struct synaptics_data *priv;
-#ifndef CONFIG_MOUSE_PS2_SYNAPTICS
- return -1;
-#endif
-
psmouse->private = priv = kmalloc(sizeof(struct synaptics_data), GFP_KERNEL);
if (!priv)
return -1;
diff -puN drivers/input/mouse/synaptics.h~synaptics-config-cleanup drivers/input/mouse/synaptics.h
--- linux/drivers/input/mouse/synaptics.h~synaptics-config-cleanup 2003-09-28 07:07:29.000000000 +0200
+++ linux-petero/drivers/input/mouse/synaptics.h 2003-09-28 07:07:29.000000000 +0200
@@ -10,10 +10,17 @@
#define _SYNAPTICS_H
+#ifdef CONFIG_MOUSE_PS2_SYNAPTICS
extern void synaptics_process_byte(struct psmouse *psmouse, struct pt_regs *regs);
extern int synaptics_init(struct psmouse *psmouse);
extern int synaptics_pt_init(struct psmouse *psmouse);
extern void synaptics_disconnect(struct psmouse *psmouse);
+#else
+static inline void synaptics_process_byte(struct psmouse *psmouse, struct pt_regs *regs) {}
+static inline int synaptics_init(struct psmouse *psmouse) { return -1; }
+static inline int synaptics_pt_init(struct psmouse *psmouse) { return -1; }
+static inline void synaptics_disconnect(struct psmouse *psmouse) {}
+#endif
/* synaptics queries */
#define SYN_QUE_IDENTIFY 0x00
_
--
Peter Osterlund - petero2@telia.com
http://w1.894.telia.com/~u89404340
next prev parent reply other threads:[~2003-10-01 15:38 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.44.0309110744030.28410-100000@home.osdl.org>
2003-09-18 23:43 ` Broken synaptics mouse Peter Osterlund
2003-09-19 5:05 ` Dmitry Torokhov
2003-09-19 11:48 ` Vojtech Pavlik
2003-09-21 17:20 ` Peter Osterlund
2003-09-21 17:27 ` Vojtech Pavlik
2003-09-21 19:29 ` Peter Osterlund
2003-09-21 19:34 ` Vojtech Pavlik
2003-09-21 20:26 ` Peter Osterlund
2003-09-21 20:42 ` Vojtech Pavlik
2003-09-21 23:16 ` Dmitry Torokhov
2003-09-22 5:31 ` Vojtech Pavlik
2003-09-22 5:58 ` Dmitry Torokhov
2003-09-22 6:09 ` Vojtech Pavlik
2003-10-01 10:03 ` Pavel Machek
2003-10-01 15:38 ` Peter Osterlund [this message]
[not found] <xgHm.3mL.27@gated-at.bofh.it>
[not found] ` <xlGW.2qw.15@gated-at.bofh.it>
2003-09-19 15:39 ` Ruben Puettmann
2003-09-21 21:17 Ricardo Galli
2003-09-21 21:41 ` Peter Osterlund
-- strict thread matches above, loose matches on Subject: below --
2003-09-21 22:15 Ricardo Galli
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=m2smmdj7dc.fsf@p4.localdomain \
--to=petero2@telia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@suse.cz \
--cc=torvalds@osdl.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox