[parisc-linux-cvs] invalid scancode (7f) fix
Richard Hirst
rhirst@linuxcare.com
Wed, 27 Jun 2001 21:43:34 +0100
Avoid error msgs to console when capslock (for example) is
pressed.
Index: Makefile
===================================================================
RCS file: /home/cvs/parisc/linux/Makefile,v
retrieving revision 1.78
diff -u -r1.78 Makefile
--- Makefile 2001/06/27 19:22:53 1.78
+++ Makefile 2001/06/27 20:37:11
@@ -1,7 +1,7 @@
VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 0
-EXTRAVERSION = -pa47
+EXTRAVERSION = -pa48
KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
Index: drivers/char/hp_psaux.c
===================================================================
RCS file: /home/cvs/parisc/linux/drivers/char/hp_psaux.c,v
retrieving revision 1.7
diff -u -r1.7 hp_psaux.c
--- hp_psaux.c 2001/06/22 23:16:26 1.7
+++ hp_psaux.c 2001/06/27 20:37:11
@@ -410,8 +410,12 @@
while (status_keyb & LASI_STAT_RBNE) {
scancode = read_input(hpa);
-
- if (inited)
+
+ /* XXX don't know if this is a valid fix, but filtering
+ * 0xfa avoids 'unknown scancode' errors on, eg, capslock
+ * on some keyboards.
+ */
+ if (inited && scancode != 0xfa)
handle_at_scancode(scancode);
status_keyb =read_status(hpa);