Source-Changes-HG archive

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

[src/nick-nhusb]: src/sys/dev/usb Only dump sqtds if we're not isochronous



details:   https://anonhg.NetBSD.org/src/rev/d9571e238cd2
branches:  nick-nhusb
changeset: 804292:d9571e238cd2
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Mar 15 11:52:47 2015 +0000

description:
Only dump sqtds if we're not isochronous

diffstat:

 sys/dev/usb/ehci.c |  15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diffs (43 lines):

diff -r 28aa07399adb -r d9571e238cd2 sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c        Wed Mar 11 07:48:42 2015 +0000
+++ b/sys/dev/usb/ehci.c        Sun Mar 15 11:52:47 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ehci.c,v 1.234.2.40 2015/03/07 22:15:50 skrll Exp $ */
+/*     $NetBSD: ehci.c,v 1.234.2.41 2015/03/15 11:52:47 skrll Exp $ */
 
 /*
  * Copyright (c) 2004-2012 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.234.2.40 2015/03/07 22:15:50 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.234.2.41 2015/03/15 11:52:47 skrll Exp $");
 
 #include "ohci.h"
 #include "uhci.h"
@@ -1036,11 +1036,6 @@
        }
 
        USBHIST_LOG(ehcidebug, "xfer=%p, pipe=%p ready", xfer, epipe, 0, 0);
-#ifdef EHCI_DEBUG
-       USBHIST_LOGN(ehcidebug, 5, "--- dump start ---", 0, 0, 0, 0);
-       ehci_dump_sqtds(ex->ex_sqtdstart);
-       USBHIST_LOGN(ehcidebug, 5, "--- dump end ---", 0, 0, 0, 0);
-#endif
 
        /* The transfer is done, compute actual length and status. */
 
@@ -1145,6 +1140,12 @@
 
        /* Continue processing xfers using queue heads */
 
+#ifdef EHCI_DEBUG
+       USBHIST_LOGN(ehcidebug, 5, "--- dump start ---", 0, 0, 0, 0);
+       ehci_dump_sqtds(ex->ex_sqtdstart);
+       USBHIST_LOGN(ehcidebug, 5, "--- dump end ---", 0, 0, 0, 0);
+#endif
+
        lsqtd = ex->ex_sqtdend;
        actlen = 0;
        for (sqtd = ex->ex_sqtdstart; sqtd != lsqtd->nextqtd;



Home | Main Index | Thread Index | Old Index