From 295f216ab822ae0ec49c27ea32d5eed7b98c96a8 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Sun, 25 May 2014 09:59:13 +0000 Subject: 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@ --- sys/dev/usb/uhci.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/dev/usb') 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); } -- cgit v1.2.3