summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2014-08-30 09:32:20 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2014-08-30 09:32:20 +0000
commitb083fb5fde307d5a9145d75001386157313c5535 (patch)
tree01023a6ee7283d77b550dec7923b3cda92db40e7 /sys/dev/usb
parenta06f98dc3b4d04ce352766adffbdf77cec5dfd7c (diff)
Allow new devices to get an address when XHCI_DEBUG is defined.
Diffstat (limited to 'sys/dev/usb')
-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);
}