Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Set ux_isdone in uhci_poll_hub for DIAGNOSTIC.



details:   https://anonhg.NetBSD.org/src/rev/673d9dd41ae5
branches:  trunk
changeset: 969302:673d9dd41ae5
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Feb 14 16:47:28 2020 +0000

description:
Set ux_isdone in uhci_poll_hub for DIAGNOSTIC.

diffstat:

 sys/dev/usb/uhci.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r 927c2b86a6e4 -r 673d9dd41ae5 sys/dev/usb/uhci.c
--- a/sys/dev/usb/uhci.c        Fri Feb 14 16:47:11 2020 +0000
+++ b/sys/dev/usb/uhci.c        Fri Feb 14 16:47:28 2020 +0000
@@ -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 @@
        /*
         * 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);



Home | Main Index | Thread Index | Old Index