summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2014-08-30 09:32:19 +0000
committermpi <mpi@openbsd.org>2014-08-30 09:32:19 +0000
commit32383243295c20bf1b6cddaa2064ef040f188625 (patch)
tree85ed928ad274e9a5ef876de15a8dff55ba454863
parentFix profiling (GPROF) build. (diff)
downloadwireguard-openbsd-32383243295c20bf1b6cddaa2064ef040f188625.tar.xz
wireguard-openbsd-32383243295c20bf1b6cddaa2064ef040f188625.zip
Allow new devices to get an address when XHCI_DEBUG is defined.
-rw-r--r--sys/dev/usb/xhci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/xhci.c b/sys/dev/usb/xhci.c
index 6e7ad79665f..5450d5c9a03 100644
--- a/sys/dev/usb/xhci.c
+++ b/sys/dev/usb/xhci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xhci.c,v 1.24 2014/08/10 11:21:49 mpi Exp $ */
+/* $OpenBSD: xhci.c,v 1.25 2014/08/30 09:32:19 mpi Exp $ */
/*
* Copyright (c) 2014 Martin Pieuchot
@@ -1097,7 +1097,7 @@ xhci_pipe_init(struct xhci_softc *sc, struct usbd_pipe *pipe, uint32_t port)
/* Get output slot context. */
sctx = KERNADDR(&sdev->octx_dma, 0);
addr = XHCI_SCTX_DEV_ADDR(letoh32(sctx->state));
- error = (addr != 0);
+ error = (addr == 0);
printf("%s: dev %d addr %d\n", DEVNAME(sc), xp->slot, addr);
}