summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2012-01-28 00:40:24 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2012-01-28 00:40:24 +0000
commit86c0c85db76b52580102539efb3cbdcba76ace9c (patch)
tree2d8cf3e2ff35848ef9342d1f14de480824a9d206 /sys/dev
parent7263e3a7de4d73712745ec184059e1cc9688c6f7 (diff)
Force usb_needs_explore() at DVACT_RESUME time; from Alexander Polakov
Might help a few laptops resume their usb devices better.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/usb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c
index 490a331d2f2..6b8ce5782f3 100644
--- a/sys/dev/usb/usb.c
+++ b/sys/dev/usb/usb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usb.c,v 1.78 2011/09/18 23:24:12 krw Exp $ */
+/* $OpenBSD: usb.c,v 1.79 2012/01/28 00:40:23 deraadt Exp $ */
/* $NetBSD: usb.c,v 1.77 2003/01/01 00:10:26 thorpej Exp $ */
/*
@@ -769,6 +769,9 @@ usb_activate(struct device *self, int act)
}
}
break;
+ case DVACT_RESUME:
+ usb_needs_explore(sc->sc_bus->root_hub, 0);
+ break;
}
return (rv);
}