summaryrefslogtreecommitdiff
path: root/sys/dev/usb/ehci.c
diff options
context:
space:
mode:
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);
}