From: Dmitry Torokhov <dtor_core@ameritech.net>
To: "Gunter Königsmann" <gunter.koenigsmann@gmx.de>,
"Gunter Königsmann" <gunter@peterpall.de>
Cc: linux-kernel@vger.kernel.org, Vojtech Pavlik <vojtech@suse.cz>,
Andrew Morton <akpm@osdl.org>
Subject: Re: [PATCH 3/2] Psmouse log and discard timed out bytes - addition
Date: Sat, 10 Jan 2004 23:57:00 -0500 [thread overview]
Message-ID: <200401102357.03434.dtor_core@ameritech.net> (raw)
In-Reply-To: <200401100346.04660.dtor_core@ameritech.net>
Hi Gunter,
I have some additions to the last patch and I'd like you to give it a spin.
Also, could you please define DEBUG symbol in drivers/input/serio/i8042.c
and send me your dmesg with boot data and also when the touchpad loses
sync. I'd like to see it in all gory details :)
Thank you,
Dmitry
===================================================================
ChangeSet@1.1514, 2004-01-10 23:50:51-05:00, dtor_core@ameritech.net
Input: Change the way timeouts/parity errors are handled:
- Only complain about errors from keyboard controller if mouse
is activated
- Reset packet count to 0 as the next received byte will most
likely be the first byte of a new packet
- If expecting an ACK from the mouse set NACK condition
psmouse-base.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
===================================================================
diff -Nru a/drivers/input/mouse/psmouse-base.c b/drivers/input/mouse/psmouse-base.c
--- a/drivers/input/mouse/psmouse-base.c Sat Jan 10 23:55:28 2004
+++ b/drivers/input/mouse/psmouse-base.c Sat Jan 10 23:55:28 2004
@@ -122,9 +122,15 @@
goto out;
if (flags & (SERIO_PARITY|SERIO_TIMEOUT)) {
- printk(KERN_WARNING "psmouse.c: bad data from KBC -%s%s\n",
- flags & SERIO_TIMEOUT ? " timeout" : "",
- flags & SERIO_PARITY ? " bad parity" : "");
+ if (psmouse->state == PSMOUSE_ACTIVATED)
+ printk(KERN_WARNING "psmouse.c: bad data from KBC -%s%s\n",
+ flags & SERIO_TIMEOUT ? " timeout" : "",
+ flags & SERIO_PARITY ? " bad parity" : "");
+ if (psmouse->acking) {
+ psmouse->ack = -1;
+ psmouse->acking = 0;
+ }
+ psmouse->pktcnt = 0;
goto out;
}
next prev parent reply other threads:[~2004-01-11 4:57 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-09 10:17 Synaptics Touchpad workaround for strange behavior after Sync loss (With Patch) Gunter Königsmann
2004-01-09 10:58 ` Vojtech Pavlik
2004-01-10 22:50 ` Peter Berg Larsen
2004-01-11 2:39 ` Peter Berg Larsen
2004-01-11 3:33 ` Dmitry Torokhov
2004-01-11 8:37 ` Gunter Königsmann
2004-01-11 12:52 ` Peter Berg Larsen
2004-01-11 14:22 ` Vojtech Pavlik
2004-01-11 15:34 ` Dmitry Torokhov
2004-01-11 15:06 ` Gunter Königsmann
2004-01-11 8:10 ` Vojtech Pavlik
2004-01-11 12:46 ` Peter Berg Larsen
2004-01-11 14:21 ` Vojtech Pavlik
2004-01-19 22:25 ` Vojtech Pavlik
2004-01-10 8:44 ` Dmitry Torokhov
2004-01-10 8:45 ` [PATCH 1/2] Synaptics rate switching Dmitry Torokhov
2004-01-10 8:46 ` [PATCH 2/2] Psmouse log and discard timed out bytes Dmitry Torokhov
2004-01-10 13:05 ` Gunter Königsmann
2004-01-10 13:23 ` Gunter Königsmann
2004-01-11 4:57 ` Dmitry Torokhov [this message]
2004-01-11 8:11 ` [PATCH 3/2] Psmouse log and discard timed out bytes - addition Gunter Königsmann
2004-01-10 9:56 ` [PATCH 1/2] Synaptics rate switching Vojtech Pavlik
2004-01-10 22:05 ` Gunter Königsmann
2004-01-10 23:37 ` Vojtech Pavlik
2004-01-11 2:20 ` Dmitry Torokhov
2004-01-11 8:00 ` Gunter Königsmann
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=200401102357.03434.dtor_core@ameritech.net \
--to=dtor_core@ameritech.net \
--cc=akpm@osdl.org \
--cc=gunter.koenigsmann@gmx.de \
--cc=gunter@peterpall.de \
--cc=linux-kernel@vger.kernel.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