From b083fb5fde307d5a9145d75001386157313c5535 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Sat, 30 Aug 2014 09:32:20 +0000 Subject: Allow new devices to get an address when XHCI_DEBUG is defined. --- sys/dev/usb/xhci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/usb') 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); } -- cgit v1.2.3