mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vojtech Pavlik <vojtech@suse.cz>
To: Vojtech Pavlik <vojtech@suse.cz>
Cc: torvalds@transmeta.com, linux-kernel@vger.kernel.org
Subject: [patch 1/2] Fix shift-pgup problems in i8042.c
Date: Wed, 21 Aug 2002 19:10:34 +0200	[thread overview]
Message-ID: <20020821191034.A6014@ucw.cz> (raw)
In-Reply-To: <20020820153813.A13034@ucw.cz>; from vojtech@suse.cz on Tue, Aug 20, 2002 at 03:38:13PM +0200

Hi!

You can import this changeset into BK by piping this whole message to:
'| bk receive [path to repository]' or apply the patch as usual.
'bk pull bk://linux-input.bkbits.net/linux-input' should work as well.

===================================================================

ChangeSet@1.510, 2002-08-21 19:00:13+02:00, vojtech@suse.cz
  Fix i8042.c to ignore fake key releases generated by AT keyboard
  in translated set 2. This fixes a problem where shift-pgup, with
  the pgup released first generated an unknown scancode warning and
  the shift remained stuck.


 i8042.c |    4 ++++
 1 files changed, 4 insertions(+)

===================================================================

diff -Nru a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c
--- a/drivers/input/serio/i8042.c	Wed Aug 21 19:00:39 2002
+++ b/drivers/input/serio/i8042.c	Wed Aug 21 19:00:39 2002
@@ -54,6 +54,7 @@
 static struct serio i8042_aux_port;
 static unsigned char i8042_initial_ctr;
 static unsigned char i8042_ctr;
+static unsigned char i8042_last_e0;
 struct timer_list i8042_timer;
 
 #ifdef I8042_DEBUG_IO
@@ -366,12 +367,15 @@
 					if (data > 0x7f) {
 						if (test_and_clear_bit(data & 0x7f, i8042_unxlate_seen)) {
 							serio_interrupt(&i8042_kbd_port, 0xf0, dfl);
+							if (i8042_last_e0 && (data == 0xaa || data == 0xb6))
+								set_bit(data & 0x7f, i8042_unxlate_seen);
 							data = i8042_unxlate_table[data & 0x7f];
 						}
 					} else {
 						set_bit(data, i8042_unxlate_seen);
 						data = i8042_unxlate_table[data];
 					}
+					i8042_last_e0 = (data == 0xe0);
 				}
 				serio_interrupt(&i8042_kbd_port, data, dfl);
 			}

===================================================================

This BitKeeper patch contains the following changesets:
+
## Wrapped with gzip_uu ##


begin 664 bkpatch5769
M'XL(`#?'8ST``[54;4_;,!#^7/^*DY`0")J<G==VZ@1C;$.;-,3@<^4Z;N,U
M=:K8H67*CY_3E@*58*\D413[[IX[^7F>[,&-D56_<UM^MU+D9`\^E<;V.Z8V
MTA,_W/JJ+-W:S\N9]#=9_FCJ*SVO+7'Q2VY%#K>R,OT.]8+MCKV;RW[GZOSC
MS9?3*T(&`SC+N9[(;]+"8$!L6=WR(C,GW.9%J3U;<6UFTG)/E+-FF]HP1.;N
MB"8!1G%#8PR31M",4AY2F2$+TS@DF\%.-F/OUJ>,8N3>81,QEL;D/5`OH@C(
M?$Q]1H'V^HA]&APA<Q^P`P='%+I(WL'_'?J,"/B@EJ!2#)DG'#JHB2XK"6,^
ME3"5=U#)0G(C#4RDEA6W,H/1'9Q>M\%1R:O,02@-JSF*5=BXXV4>7.?*P%@M
M72F'>56."CF#12X=N,G5V';GDWI^#`ME<P=A<PGMQGV_S)56QC[JRC74>JK+
MA08CN!9E)F'!*ZWTQ,6R#<8*VH',N-+M++864X]\AHB&*9++!P60[A]>A"!'
M\G;+C%VH0DURZ]5BT1*>5:J5X%J6OI.T*OW-N:[92#"@+(IIW`1.#*Q)L"6"
M4R$QI&/,=CG_-:(3%4T0L==$O9;.5N(O%+6B?[7I_P&9A2P($TJ;,.YALK)&
MNFL,[#UGC/"UC''Q6TYH1?>L%6:M2-E*?RN"OD*W6JP>IZ?+E[CZ"WE>1#%0
M8BRW2CBK&.=D-X+(>;7V][#@Q@XEOB$709P"(YWUI<9P\"0!]O?A(..6.\$`
M+CF'IH&']2@^/+RO[3BS#T?*KM/W7309'V_:U7K9GL+02*D/VZ9)Z.9;MWS2
?;O"XFT27N_V%BUR*J:EG@QA9)#"FY">W!0:/+P8`````
`
end

-- 
Vojtech Pavlik
SuSE Labs

  reply	other threads:[~2002-08-21 17:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-20 13:38 [patch] Amiga input driver compile fixes Vojtech Pavlik
2002-08-21 17:10 ` Vojtech Pavlik [this message]
     [not found]   ` <20020821191227.B6014@ucw.cz>
2002-08-21 20:32     ` [patch] Franz Sirl's final PPC input conversion part Vojtech Pavlik
2002-08-22  9:09       ` [patch] Two minor fixes for the PPC input conversion Vojtech Pavlik
2002-08-25 13:25         ` [patch] (re)implement setkeycode/getkeycode/kd_mksound/kbd_setrate via the input core Vojtech Pavlik
2002-08-26  9:15           ` [patch] Stricter checks in [gs]etkeycode, recompute keybit there also 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=20020821191034.A6014@ucw.cz \
    --to=vojtech@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /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

all inboxes | Powered by JetHome®