From: Vojtech Pavlik <vojtech@suse.cz>
To: Murilo Pontes <murilo_pontes@yahoo.com.br>
Cc: linux-kernel@vger.kernel.org, wnelsonjr@comcast.net,
ctpm@rnl.ist.utl.pt, clay@exavio.com.cn, mbuesch@freenet.de,
johann.lombardi@bull.net, mikeserv@bmts.com,
gillb4@telusplanet.net, aeriksson@fastmail.fm
Subject: [patch] Re: psmouse.c, throwing 3 bytes away
Date: Mon, 9 Feb 2004 01:48:12 +0100 [thread overview]
Message-ID: <20040209004812.GA18512@ucw.cz> (raw)
In-Reply-To: <200402070911.42569.murilo_pontes@yahoo.com.br>
[-- Attachment #1: Type: text/plain, Size: 178 bytes --]
On Sat, Feb 07, 2004 at 09:11:42AM +0000, Murilo Pontes wrote:
> Problem still occurs :-(
And here is a fix. Damn stupid mistake I made.
--
Vojtech Pavlik
SuSE Labs, SuSE CR
[-- Attachment #2: lost-sync-fix --]
[-- Type: text/plain, Size: 1084 bytes --]
You can pull this changeset from:
bk://kernel.bkbits.net/vojtech/input
===================================================================
ChangeSet@1.1587, 2004-02-09 01:47:16+01:00, vojtech@suse.cz
input: Fix "psmouse: Lost sync" problem. It was really losing sync.
i8042.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
===================================================================
diff -Nru a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c
--- a/drivers/input/serio/i8042.c Mon Feb 9 01:47:46 2004
+++ b/drivers/input/serio/i8042.c Mon Feb 9 01:47:46 2004
@@ -379,9 +379,12 @@
unsigned int dfl;
int ret;
+ mod_timer(&i8042_timer, jiffies + I8042_POLL_PERIOD);
+
spin_lock_irqsave(&i8042_lock, flags);
str = i8042_read_status();
- data = i8042_read_data();
+ if (str & I8042_STR_OBF)
+ data = i8042_read_data();
spin_unlock_irqrestore(&i8042_lock, flags);
if (~str & I8042_STR_OBF) {
@@ -432,7 +435,6 @@
irq_ret:
ret = 1;
out:
- mod_timer(&i8042_timer, jiffies + I8042_POLL_PERIOD);
return IRQ_RETVAL(ret);
}
next prev parent reply other threads:[~2004-02-09 0:49 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-05 2:20 psmouse.c, throwing 3 bytes away Walt Nelson
2004-02-05 4:54 ` Claudio Martins
2004-02-05 10:20 ` Isaac Claymore
2004-02-09 6:15 ` Isaac Claymore
2004-02-09 9:09 ` Vojtech Pavlik
2004-02-09 9:49 ` Isaac Claymore
2004-02-09 9:52 ` Vojtech Pavlik
2004-02-05 13:40 ` Michael Buesch
2004-02-05 15:31 ` johann lombardi
2004-02-05 5:05 ` Mike Houston
2004-02-05 17:24 ` Murilo Pontes
2004-02-05 20:38 ` Vojtech Pavlik
2004-02-05 18:14 ` Murilo Pontes
2004-02-05 19:08 ` Murilo Pontes
2004-02-05 21:06 ` Michael Buesch
2004-02-05 22:10 ` Mike Houston
2004-02-06 7:15 ` Mike Houston
2004-02-06 8:06 ` Walt Nelson
2004-02-07 5:47 ` Mike Houston
2004-02-07 9:11 ` Murilo Pontes
2004-02-08 21:59 ` Vojtech Pavlik
2004-02-08 22:19 ` aeriksson
2004-02-08 22:32 ` Vojtech Pavlik
2004-02-08 23:03 ` Bernd Schubert
2004-02-08 23:30 ` Vojtech Pavlik
[not found] ` <40278077.5070409@free.fr>
2004-02-09 22:25 ` Bernd Schubert
2004-02-09 0:48 ` Vojtech Pavlik [this message]
2004-02-09 1:13 ` [patch] " Claudio Martins
2004-02-09 1:23 ` Vojtech Pavlik
2004-02-10 2:56 ` Greg Norris
2004-02-10 7:07 ` Vojtech Pavlik
2004-02-10 7:39 ` Walt Nelson
2004-02-10 19:48 ` Greg Norris
2004-02-10 20:08 ` Vojtech Pavlik
2004-02-10 7:33 ` johann lombardi
2004-02-10 21:11 ` Murilo Pontes
2004-02-11 4:44 ` Claudio Martins
2004-02-06 0:33 ` Pete Clements
2004-02-06 22:44 ` Kronos
2004-02-07 2:35 ` Jamie Lokier
2004-02-07 4:19 ` Gene Heskett
-- strict thread matches above, loose matches on Subject: below --
2004-02-09 8:25 [patch] " Bob Gill
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=20040209004812.GA18512@ucw.cz \
--to=vojtech@suse.cz \
--cc=aeriksson@fastmail.fm \
--cc=clay@exavio.com.cn \
--cc=ctpm@rnl.ist.utl.pt \
--cc=gillb4@telusplanet.net \
--cc=johann.lombardi@bull.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mbuesch@freenet.de \
--cc=mikeserv@bmts.com \
--cc=murilo_pontes@yahoo.com.br \
--cc=wnelsonjr@comcast.net \
/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