diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-05-25 09:59:13 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-05-25 09:59:13 +0000 |
commit | 295f216ab822ae0ec49c27ea32d5eed7b98c96a8 (patch) | |
tree | 5dea508143605189fe5fe5d856fd23ec8d093ab9 /sys/dev/usb | |
parent | a89498710ce9341e4900b4bebc45717a611c25b6 (diff) |
The default case in uhci_deactivate() was missing. Because of that,
DVACT_QUIESCE was not passed to usb(4) and a new uhub(4) device was
reattached at every resume.
Problem reported by mlarkin@
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/uhci.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index 6f481f04736..afb3037174d 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uhci.c,v 1.120 2014/05/19 06:54:34 jsg Exp $ */ +/* $OpenBSD: uhci.c,v 1.121 2014/05/25 09:59:12 mpi Exp $ */ /* $NetBSD: uhci.c,v 1.172 2003/02/23 04:19:26 simonb Exp $ */ /* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */ @@ -565,6 +565,9 @@ uhci_activate(struct device *self, int act) rv = config_activate_children(self, act); sc->sc_bus.dying = 1; break; + default: + rv = config_activate_children(self, act); + break; } return (rv); } |