summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2007-02-21 03:58:13 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2007-02-21 03:58:13 +0000
commitf3d4c50eaef3ebc726227bda9a587805bca405e9 (patch)
tree9e6f175932e6605db370addfb1d5eaa2a57de691 /sys/dev/acpi
parent6a13437e9b409624604d242ffd9ee25ad6044bf2 (diff)
Some Sony VAIOs use the wrong eventing type. Work around that by honering it.
Found by giovanni <qgiovanni @ gmail . com> ok jordan
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/acpiac.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpiac.c b/sys/dev/acpi/acpiac.c
index c0f8333f0df..90f7ebb1f1d 100644
--- a/sys/dev/acpi/acpiac.c
+++ b/sys/dev/acpi/acpiac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpiac.c,v 1.16 2007/01/03 05:52:28 marco Exp $ */
+/* $OpenBSD: acpiac.c,v 1.17 2007/02/21 03:58:12 marco Exp $ */
/*
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
*
@@ -128,6 +128,12 @@ acpiac_notify(struct aml_node *node, int notify_type, void *arg)
sc->sc_devnode->parent->name);
switch (notify_type) {
+ case 0x81:
+ /*
+ * XXX some sony vaio's use the wrong notify type
+ * work around it by honoring it as a 0x80
+ */
+ /* FALLTHROUGH */
case 0x80:
acpiac_refresh(sc);
dnprintf(10, "A/C status: %d\n", sc->sc_ac_stat);