summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2005-08-06 01:30:33 +0000
committerjsg <jsg@openbsd.org>2005-08-06 01:30:33 +0000
commit1c54b514107cc04d7aec766768fd4d4c356adba0 (patch)
tree58a75bb5e22a8aad64d1f6d29d56f50edf30dcae
parentdocument "set skip on" in the BNF grammar, from David Krause (diff)
downloadwireguard-openbsd-1c54b514107cc04d7aec766768fd4d4c356adba0.tar.xz
wireguard-openbsd-1c54b514107cc04d7aec766768fd4d4c356adba0.zip
Improved X40 kludge, tested by djm@.
Any X40 users still having problems after this mail me.
-rw-r--r--sys/dev/isa/aps.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/isa/aps.c b/sys/dev/isa/aps.c
index 29e5af197ea..33f911f9e10 100644
--- a/sys/dev/isa/aps.c
+++ b/sys/dev/isa/aps.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aps.c,v 1.3 2005/08/05 09:22:48 jsg Exp $ */
+/* $OpenBSD: aps.c,v 1.4 2005/08/06 01:30:33 jsg Exp $ */
/*
* Copyright (c) 2005 Jonathan Gray <jsg@openbsd.org>
*
@@ -82,6 +82,7 @@ aps_match(struct device *parent, void *match, void *aux)
bus_space_write_1(iot, ioh, APS_CMD, 0x01);
/* ask again as the X40 is slightly deaf in one ear */
+ bus_space_read_1(iot, ioh, APS_CMD);
bus_space_write_1(iot, ioh, APS_INIT, 0x13);
bus_space_write_1(iot, ioh, APS_CMD, 0x01);