Plan 9 from Bell Labs’s /sources/contrib/mospak/9-portusbehci-route/9-portusbehci-route.diff

Copyright © 2026 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


--- sys/src/9/port/usbehci.c
+++ sys/src/9/port/usbehci.c
@@ -3168,7 +3168,6 @@
 	Ctlr *ctlr;
 	Eopio *opio;
 	int i;
-	static int ctlrno;
 
 	hp->highspeed = 1;
 	ctlr = hp->aux;
@@ -3187,12 +3186,7 @@
 	opio->cmd |= Case;
 	coherence();
 	ehcirun(ctlr, 1);
-	/*
-	 * route all ports by default to only one ehci (the first).
-	 * it's not obvious how multiple ehcis could work and on some
-	 * machines, setting Callmine on all ehcis makes the machine seize up.
-	 */
-	opio->config = (ctlrno == 0? Callmine: 0);
+	opio->config = Callmine;	/* reclaim all ports */
 	coherence();
 
 	for (i = 0; i < hp->nports; i++)
@@ -3200,7 +3194,6 @@
 	iunlock(ctlr);
 	if(ehcidebug > 1)
 		dump(hp);
-	ctlrno++;
 }
 
 void

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2026 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.