summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-05-03 13:02:36 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-05-03 13:02:36 +0000
commit420507c143b3cf9f031eea6fe6e771801eb38ae9 (patch)
treeeecc62a533d235aa49b5d6ede83689fc22c9f1d2
parent194687d678e740bb60b760ec2ff31cbc7f0c0adb (diff)
Make sure pckbd_scancode_translate() returns a scancode with the break/release
bit set if needed, in all cases. This fixes rawkbd operation on controllers which require the kernel to perform scancode translation. Found by and ok kettenis@
-rw-r--r--sys/dev/pckbc/pckbd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pckbc/pckbd.c b/sys/dev/pckbc/pckbd.c
index 411ea1944a3..277e1cfb4e0 100644
--- a/sys/dev/pckbc/pckbd.c
+++ b/sys/dev/pckbc/pckbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pckbd.c,v 1.16 2008/11/21 14:38:03 robert Exp $ */
+/* $OpenBSD: pckbd.c,v 1.17 2009/05/03 13:02:35 miod Exp $ */
/* $NetBSD: pckbd.c,v 1.24 2000/06/05 22:20:57 sommerfeld Exp $ */
/*-
@@ -778,7 +778,7 @@ pckbd_scancode_translate(struct pckbd_internal *id, int datain)
return 0xff;
}
- return datain;
+ return datain | id->t_releasing;
}
static int