summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2021-10-13 16:57:38 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2021-10-13 16:57:38 +0000
commit3fe3e370e3bcad21b61aec6cbf5d11a9398e805b (patch)
treeff7b99c2b1eec15c0298d37c8cc7ce16c137c864
parent03d870e0283299404b0eb46689d13f8538e83a2f (diff)
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.
-rw-r--r--sys/src/9/port/usbxhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/usbxhci.c b/sys/src/9/port/usbxhci.c
index 5af746dfa..df0742975 100644
--- a/sys/src/9/port/usbxhci.c
+++ b/sys/src/9/port/usbxhci.c
@@ -616,7 +616,7 @@ recover(void *arg)
while(waserror())
;
while(!needrecover(ctlr))
- tsleep(&ctlr->recover, needrecover, ctlr, 10);
+ tsleep(&ctlr->recover, needrecover, ctlr, 1000);
shutdown(hp);
/*