git: 9front

Download patch

ref: f6fc42bd2ea070921d6d8742ed5e0fbe290c5386
parent: 6b8726edea579c81fac3d17ab956fc9f51daf1e6
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Oct 13 12:57:38 EDT 2021

usbxhci: xhcirecover proc does not need to check status every 10ms

The timing loop is here for the case if the
controller doesnt produce an interrupt when
becoming broken. In normal case, we should
just get worken up from the interrupt.

In any case, 100 times a second polling is
not neccessary here, increase to 1 second.

--- a/sys/src/9/port/usbxhci.c
+++ b/sys/src/9/port/usbxhci.c
@@ -616,7 +616,7 @@
 	while(waserror())
 		;
 	while(!needrecover(ctlr))
-		tsleep(&ctlr->recover, needrecover, ctlr, 10);
+		tsleep(&ctlr->recover, needrecover, ctlr, 1000);
 	shutdown(hp);
 
 	/*
--