Module Name:    src
Committed By:   riastradh
Date:           Fri Feb 14 16:47:28 UTC 2020

Modified Files:
        src/sys/dev/usb: uhci.c

Log Message:
Set ux_isdone in uhci_poll_hub for DIAGNOSTIC.


To generate a diff of this commit:
cvs rdiff -u -r1.291 -r1.292 src/sys/dev/usb/uhci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/uhci.c
diff -u src/sys/dev/usb/uhci.c:1.291 src/sys/dev/usb/uhci.c:1.292
--- src/sys/dev/usb/uhci.c:1.291	Fri Feb 14 16:47:11 2020
+++ src/sys/dev/usb/uhci.c	Fri Feb 14 16:47:28 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: uhci.c,v 1.291 2020/02/14 16:47:11 riastradh Exp $	*/
+/*	$NetBSD: uhci.c,v 1.292 2020/02/14 16:47:28 riastradh Exp $	*/
 
 /*
  * Copyright (c) 1998, 2004, 2011, 2012 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.291 2020/02/14 16:47:11 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.292 2020/02/14 16:47:28 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -1056,11 +1056,12 @@ uhci_poll_hub(void *addr)
 	/*
 	 * Interrupt completed, and the xfer has not been completed or
 	 * synchronously aborted.  Complete the xfer now.
-	 *
-	 * XXX Set ux_isdone if DIAGNOSTIC?
 	 */
 	xfer->ux_actlen = 1;
 	xfer->ux_status = USBD_NORMAL_COMPLETION;
+#ifdef DIAGNOSTIC
+	UHCI_XFER2UXFER(xfer)->ux_isdone = true;
+#endif
 	usb_transfer_complete(xfer);
 
 out:	mutex_exit(&sc->sc_lock);

Reply via email to