summaryrefslogtreecommitdiff
path: root/sys/dev/usb/ehci.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-11-26 12:27:49 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-11-26 12:27:49 +0000
commit21e1a96da68f6ee9589f59a7772c83c9ce83b215 (patch)
tree0200d84fa5f747d6b3b4359d2b0b64832b6e5cfe /sys/dev/usb/ehci.c
parent3933a59914b8d2faa804d87e6e3b6e6a69d70a2e (diff)
Call the existing power functions with our activate function for
the suspend and resume operations ok kettenis
Diffstat (limited to 'sys/dev/usb/ehci.c')
-rw-r--r--sys/dev/usb/ehci.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c
index 0718dac34f2..4986271eb89 100644
--- a/sys/dev/usb/ehci.c
+++ b/sys/dev/usb/ehci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ehci.c,v 1.105 2009/11/24 00:31:13 jakemsr Exp $ */
+/* $OpenBSD: ehci.c,v 1.106 2009/11/26 12:27:48 deraadt Exp $ */
/* $NetBSD: ehci.c,v 1.66 2004/06/30 03:11:56 mycroft Exp $ */
/*
@@ -1040,6 +1040,13 @@ ehci_activate(struct device *self, int act)
rv = config_deactivate(sc->sc_child);
sc->sc_dying = 1;
break;
+ case DVACT_SUSPEND:
+ ehci_power(PWR_SUSPEND, sc);
+ break;
+ case DVACT_RESUME:
+ ehci_power(PWR_RESUME, sc);
+ rv = config_activate_children(self, act);
+ break;
}
return (rv);
}