ref: 3fe3e370e3bcad21b61aec6cbf5d11a9398e805b
parent: 03d870e0283299404b0eb46689d13f8538e83a2f
author: cinap_lenrek <[email protected]>
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);
/*