Module Name:    src
Committed By:   msaitoh
Date:           Tue Oct 11 09:30:46 UTC 2022

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

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


To generate a diff of this commit:
cvs rdiff -u -r1.173 -r1.174 src/sys/dev/usb/xhci.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/xhci.c
diff -u src/sys/dev/usb/xhci.c:1.173 src/sys/dev/usb/xhci.c:1.174
--- src/sys/dev/usb/xhci.c:1.173	Tue Oct 11 09:18:22 2022
+++ src/sys/dev/usb/xhci.c	Tue Oct 11 09:30:46 2022
@@ -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 @@ xhci_id_protocols(struct xhci_softc *sc,
 		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",

Reply via email to