[parisc-linux-cvs] HIL keyboard fix
rhirst@linuxcare.com
rhirst@linuxcare.com
Wed, 21 Nov 2001 16:16:08 +0000
-PA8
I found hil_last.valid was true before it sent the HIL_READKBDSADR,
which was an obvious bug. Now works for me (715/75) following
power up, but not after reboot but no power cycle. However, I'm
using serial console, so firmware porbably isn't initialising HIL
k/b on reset.
Index: drivers/char/hilkbd.c
===================================================================
RCS file: /var/cvs/linux/drivers/char/hilkbd.c,v
retrieving revision 1.13
diff -u -r1.13 hilkbd.c
--- drivers/char/hilkbd.c 2001/10/29 18:38:21 1.13
+++ drivers/char/hilkbd.c 2001/11/21 11:23:15
@@ -396,6 +396,7 @@
hil_do(HIL_INTON, NULL, 0);
/* Look for keyboards */
+ hil_getlast(s, c); /* clear any pending data */
hil_do(HIL_READKBDSADR, NULL, 0);
while (!hil_last.valid) {
if (n++ > 100000) {