summaryrefslogtreecommitdiff
path: root/sys/dev/pci/autri.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-12-06 21:03:06 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-12-06 21:03:06 +0000
commitdde7b00df07d5064317db5ff355091c989d5d684 (patch)
tree7ea38e550451394317b7581ff5f8914bd269ec95 /sys/dev/pci/autri.c
parent236f5968eef75c8e14b0b020bb15cc2f53b5041e (diff)
Add a DVACT_WAKEUP op to the *_activate() API. This is called after the
kernel resumes normal (non-cold, able to run processes, etc) operation. Previously we were relying on specific DVACT_RESUME op's in drivers creating callback/threads themselves, but that has become too common, indicating the need for a built-in mechanism. ok dlg kettenis, tested by a sufficient amount of people
Diffstat (limited to 'sys/dev/pci/autri.c')
-rw-r--r--sys/dev/pci/autri.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/dev/pci/autri.c b/sys/dev/pci/autri.c
index 051413f1ecf..9650e049ee2 100644
--- a/sys/dev/pci/autri.c
+++ b/sys/dev/pci/autri.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: autri.c,v 1.34 2013/11/15 16:46:27 brad Exp $ */
+/* $OpenBSD: autri.c,v 1.35 2013/12/06 21:03:03 deraadt Exp $ */
/*
* Copyright (c) 2001 SOMEYA Yoshihiko and KUROSAWA Takahiro.
@@ -598,17 +598,13 @@ autri_activate(struct device *self, int act)
int rv = 0;
switch (act) {
- case DVACT_QUIESCE:
- rv = config_activate_children(self, act);
- break;
- case DVACT_SUSPEND:
- break;
case DVACT_RESUME:
autri_init(sc);
ac97_resume(&sc->sc_codec.host_if, sc->sc_codec.codec_if);
rv = config_activate_children(self, act);
break;
- case DVACT_DEACTIVATE:
+ default:
+ rv = config_activate_children(self, act);
break;
}
return (rv);