Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb "Add" number of ports because the same speed's E...



details:   https://anonhg.NetBSD.org/src/rev/0dcf5c8f5892
branches:  trunk
changeset: 371791:0dcf5c8f5892
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Oct 11 09:30:46 2022 +0000

description:
"Add" number of ports because the same speed's ECR may appear multiple times.

diffstat:

 sys/dev/usb/xhci.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r e7f64f12a9b3 -r 0dcf5c8f5892 sys/dev/usb/xhci.c
--- a/sys/dev/usb/xhci.c        Tue Oct 11 09:18:22 2022 +0000
+++ b/sys/dev/usb/xhci.c        Tue Oct 11 09:30:46 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xhci.c,v 1.173 2022/10/11 09:18:22 msaitoh Exp $       */
+/*     $NetBSD: xhci.c,v 1.174 2022/10/11 09:30:46 msaitoh Exp $       */
 
 /*
  * Copyright (c) 2013 Jonathan A. Kollasch
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.173 2022/10/11 09:18:22 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.174 2022/10/11 09:30:46 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -1215,9 +1215,9 @@
                aprint_debug_dev(sc->sc_dev, " %s ports %d - %d\n",
                    major == 3 ? "ss" : "hs", cpo, cpo + cpc -1);
                if (major == 3)
-                       sc->sc_usb3nports = cpo + cpc -1;
+                       sc->sc_usb3nports += cpo + cpc -1;
                else
-                       sc->sc_usb2nports = cpo + cpc -1;
+                       sc->sc_usb2nports += cpo + cpc -1;
                break;
        default:
                aprint_error_dev(sc->sc_dev, " unknown major/minor (%d/%d)\n",



Home | Main Index | Thread Index | Old Index