From: Vojtech Pavlik <vojtech@suse.cz>
To: Mikael Pettersson <mikpe@csd.uu.se>
Cc: vojtech@suse.cz, linux-kernel@vger.kernel.org
Subject: Re: Dell Latitude CPi keyboard problems since 2.5.42
Date: Mon, 27 Jan 2003 22:52:43 +0100 [thread overview]
Message-ID: <20030127225243.A25892@ucw.cz> (raw)
In-Reply-To: <200301272057.VAA13114@harpo.it.uu.se>; from mikpe@csd.uu.se on Mon, Jan 27, 2003 at 09:57:43PM +0100
On Mon, Jan 27, 2003 at 09:57:43PM +0100, Mikael Pettersson wrote:
> On Mon, 27 Jan 2003 13:34:32 +0100, Vojtech Pavlik wrote:
> >> Either removing the SSCANSET from atkbd_cleanup(), or changing
> >> atkbd->oldset from 22 to 2, solves my CPi's keyboard problems.
> >
> >Can you try with the attached atkbd.c? It uses RESET_BAT instead of
> >SSCANSET, which will slow down the reboot a bit, but should be very safe
> >to bring the keyboard to its power-on state, which the BIOS should be
> >able to handle.
>
> I tried it, and the change to use RESET_BAT in atkbd_cleanup()
> works fine. Tested on my Dell Latitiude CPi and four desktop
> boxes of various vintages. No new problems. A reboot takes maybe
> 1/10 of a second longer, but I don't care.
>
> However, your version of atkbd.c caused a linkage error due to a
> reference to input_regs() in atkbd_interrupt(). I extracted
> just the changes to atkbd_cleanup() and atkbd_command(), but that
> left me with a dead keyboard on the first test box. In the end
> I kept only the atkbd_cleanup() change and the increased timeout
> for RESET_BAT in atkbd_command() [see below].
Good. I'll do more tests here and find the problem which left you
without the keyboard - the current atkbd.c I sent you is fairly
untested.
>
> /Mikael
>
> --- linux-2.5.59/drivers/input/keyboard/atkbd.c.~1~ 2002-11-23 17:59:41.000000000 +0100
> +++ linux-2.5.59/drivers/input/keyboard/atkbd.c 2003-01-27 19:54:30.000000000 +0100
> @@ -233,6 +233,9 @@
> int i;
>
> atkbd->cmdcnt = receive;
> +
> + if (command == ATKBD_CMD_RESET_BAT)
> + timeout = 200000; /* 2 sec */
>
> if (command & 0xff)
> if (atkbd_sendbyte(atkbd, command & 0xff))
> @@ -442,7 +445,7 @@
> static void atkbd_cleanup(struct serio *serio)
> {
> struct atkbd *atkbd = serio->private;
> - atkbd_command(atkbd, &atkbd->oldset, ATKBD_CMD_SSCANSET);
> + atkbd_command(atkbd, NULL, ATKBD_CMD_RESET_BAT);
> }
>
> /*
--
Vojtech Pavlik
SuSE Labs
next prev parent reply other threads:[~2003-01-27 21:46 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-27 20:57 Dell Latitude CPi keyboard problems since 2.5.42 Mikael Pettersson
2003-01-27 21:52 ` Vojtech Pavlik [this message]
2003-01-28 1:56 ` Tom Sightler
2003-01-28 10:12 ` Vojtech Pavlik
-- strict thread matches above, loose matches on Subject: below --
2003-01-27 12:26 Mikael Pettersson
2003-01-27 12:34 ` Vojtech Pavlik
2003-01-26 14:39 Mikael Pettersson
2003-01-26 20:55 ` Vojtech Pavlik
2003-01-24 20:49 NFS client locking hangs for period Christian Reis
2003-01-25 3:54 ` Neil Brown
2003-01-26 16:02 ` Christian Reis
2003-01-26 21:49 ` [NFS] " Trond Myklebust
2003-01-26 22:47 ` Christian Reis
2003-01-26 23:02 ` Trond Myklebust
2003-01-26 23:56 ` Christian Reis
2003-01-27 0:06 ` Trond Myklebust
2003-01-27 2:19 ` Dell Latitude CPi keyboard problems since 2.5.42 Tom Sightler
2003-01-15 10:22 Mikael Pettersson
2003-01-15 10:43 ` Andrew McGregor
2003-01-15 19:21 ` Valdis.Kletnieks
2003-01-16 2:50 ` Andrew McGregor
2003-01-16 13:33 ` Alessandro Suardi
2003-01-25 14:02 ` Vojtech Pavlik
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=20030127225243.A25892@ucw.cz \
--to=vojtech@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=mikpe@csd.uu.se \
/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