diff options
author | 2004-12-12 05:17:40 +0000 | |
---|---|---|
committer | 2004-12-12 05:17:40 +0000 | |
commit | dd5cdf49f41c8297a8b85ddb27a5869de0c06a39 (patch) | |
tree | 70aaec5e7a2d294a08500c296790f15184b6938e /sys/dev/usb/usb.c | |
parent | add quirk lookup table, isn't used for anything at the moment (diff) | |
download | wireguard-openbsd-dd5cdf49f41c8297a8b85ddb27a5869de0c06a39.tar.xz wireguard-openbsd-dd5cdf49f41c8297a8b85ddb27a5869de0c06a39.zip |
better way to do the reattachement of a device
Diffstat (limited to 'sys/dev/usb/usb.c')
-rw-r--r-- | sys/dev/usb/usb.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c index 6d7f6d242b9..b5aa2161c6b 100644 --- a/sys/dev/usb/usb.c +++ b/sys/dev/usb/usb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usb.c,v 1.29 2004/07/08 22:18:44 deraadt Exp $ */ +/* $OpenBSD: usb.c,v 1.30 2004/12/12 05:17:40 dlg Exp $ */ /* $NetBSD: usb.c,v 1.77 2003/01/01 00:10:26 thorpej Exp $ */ /* @@ -672,6 +672,15 @@ usb_needs_explore(usbd_device_handle dev) wakeup(&dev->bus->needs_explore); } +void +usb_needs_reattach(usbd_device_handle dev) +{ + DPRINTFN(2,("usb_needs_reattach\n")); + dev->powersrc->reattach = 1; + dev->bus->needs_explore = 1; + wakeup(&dev->bus->needs_explore); +} + /* Called at splusb() */ int usb_get_next_event(struct usb_event *ue) |