public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Vojtech Pavlik <vojtech@suse.cz>
To: Andries.Brouwer@cwi.nl
Cc: akpm@osdl.org, torvalds@osdl.org, vojtech@suse.cz,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] more keyboard stuff
Date: Fri, 19 Sep 2003 13:41:58 +0200	[thread overview]
Message-ID: <20030919114158.GC784@ucw.cz> (raw)
In-Reply-To: <UTC200309052322.h85NMi903303.aeb@smtp.cwi.nl>

On Sat, Sep 06, 2003 at 01:22:44AM +0200, Andries.Brouwer@cwi.nl wrote:
> I looked a bit more at the keyboard code and find a bug
> and a probable bug.
> 
> (i) In case a synaptics touchpad has been detected, the comment
> says "disable AUX". But we do not set the disable bit, but
> instead .and. with the bit - no doubt getting zero.
> This must be a bug.
> 
> (ii) Directly above this is the suspicious comment
> "keyboard translation seems to be always off".
> But every machine comes always up in translated scancode 2.
> Translation is never off. But wait! by mistake the above .and.
> cleared the XLATE bit.
> 
> So, I think bug (i) explains mystery (ii).
> 
> However, note that this is code reading only.
> I do not have the hardware, so cannot test.
> 
> Andries
> 
> [line numbers will be off]

Thanks for spotting this. 

> diff -u --recursive --new-file -X /linux/dontdiff a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c
> --- a/drivers/input/serio/i8042.c	Sat Aug  9 22:16:42 2003
> +++ b/drivers/input/serio/i8042.c	Sat Sep  6 02:05:34 2003
> @@ -618,16 +619,10 @@
>  		(~param >> 4) & 0xf, ~param & 0xf);
>  
>  /*
> - * In MUX mode the keyboard translation seems to be always off.
> - */
> - 
> -	i8042_direct = 1;
> -
> -/*
>   * Disable all muxed ports by disabling AUX.
>   */
>  
> -	i8042_ctr &= I8042_CTR_AUXDIS;
> +	i8042_ctr |= I8042_CTR_AUXDIS;
>  	i8042_ctr &= ~I8042_CTR_AUXINT;
>  
>  	if (i8042_command(&i8042_ctr, I8042_CMD_CTL_WCTR))

-- 
Vojtech Pavlik
SuSE Labs, SuSE CR

      reply	other threads:[~2003-09-19 11:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-05 23:22 [PATCH] more keyboard stuff Andries.Brouwer
2003-09-19 11:41 ` Vojtech Pavlik [this message]

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=20030919114158.GC784@ucw.cz \
    --to=vojtech@suse.cz \
    --cc=Andries.Brouwer@cwi.nl \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.org \
    /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