Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Root hubs don't have transaction translators, so...



details:   https://anonhg.NetBSD.org/src/rev/059f708016d2
branches:  trunk
changeset: 580591:059f708016d2
user:      augustss <augustss%NetBSD.org@localhost>
date:      Sat Apr 30 20:54:13 2005 +0000

description:
Root hubs don't have transaction translators, so don't print anything
about them for depth 0.  From FreeBSD.

diffstat:

 sys/dev/usb/uhub.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 797ab73cf6a0 -r 059f708016d2 sys/dev/usb/uhub.c
--- a/sys/dev/usb/uhub.c        Sat Apr 30 20:29:56 2005 +0000
+++ b/sys/dev/usb/uhub.c        Sat Apr 30 20:54:13 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhub.c,v 1.74 2005/03/02 11:37:27 mycroft Exp $        */
+/*     $NetBSD: uhub.c,v 1.75 2005/04/30 20:54:13 augustss Exp $       */
 /*     $FreeBSD: src/sys/dev/usb/uhub.c,v 1.18 1999/11/17 22:33:43 n_hibma Exp $       */
 
 /*
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhub.c,v 1.74 2005/03/02 11:37:27 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhub.c,v 1.75 2005/04/30 20:54:13 augustss Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -164,7 +164,7 @@
        USB_ATTACH_SETUP;
        printf("%s: %s\n", USBDEVNAME(sc->sc_dev), devinfo);
 
-       if (UHUB_IS_HIGH_SPEED(sc)) {
+       if (dev->depth > 0 && UHUB_IS_HIGH_SPEED(sc)) {
                printf("%s: %s transaction translator%s\n",
                       USBDEVNAME(sc->sc_dev),
                       UHUB_IS_SINGLE_TT(sc) ? "single" : "multiple",



Home | Main Index | Thread Index | Old Index