summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/xhci.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2014-03-25 20:27:37 +0000
committermpi <mpi@openbsd.org>2014-03-25 20:27:37 +0000
commit7eb220a671e1a196cf8b7daa7f579c11d15fc2bf (patch)
tree40811ea2487657b05c55a93d9f80f20806992b39 /sys/dev/usb/xhci.c
parentupdate after asr API update (diff)
downloadwireguard-openbsd-7eb220a671e1a196cf8b7daa7f579c11d15fc2bf.tar.xz
wireguard-openbsd-7eb220a671e1a196cf8b7daa7f579c11d15fc2bf.zip
Instead of matching root hubs with a custom address, that only works
because USB_START_ADDR is defined to 0 and the softc is M_ZERO'd, assume that root hubs are the only devices with a depth of 0. Root hubs can now happily be detached and reattached.
Diffstat (limited to 'sys/dev/usb/xhci.c')
-rw-r--r--sys/dev/usb/xhci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/usb/xhci.c b/sys/dev/usb/xhci.c
index 155e0b5e42a..7a08d57b65b 100644
--- a/sys/dev/usb/xhci.c
+++ b/sys/dev/usb/xhci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xhci.c,v 1.4 2014/03/25 17:23:40 mpi Exp $ */
+/* $OpenBSD: xhci.c,v 1.5 2014/03/25 20:27:37 mpi Exp $ */
/*
* Copyright (c) 2014 Martin Pieuchot
@@ -1839,7 +1839,6 @@ xhci_root_ctrl_start(struct usbd_xfer *xfer)
err = USBD_IOERROR;
goto ret;
}
- sc->sc_addr = value;
break;
case C(UR_SET_CONFIG, UT_WRITE_DEVICE):
if (value != 0 && value != 1) {