shithub: riscv

Download patch

ref: f59101231a5513bfa12149504f3ba26323962332
parent: 9b28790494ff317b438c7d32a3b0736ac73a1ec9
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat May 23 22:43:21 EDT 2020

usbehci: release ctlr ilock before calling pollcheck()

--- a/sys/src/9/port/usbehci.c
+++ b/sys/src/9/port/usbehci.c
@@ -2327,9 +2327,11 @@
 	if(qh->state == Qrun){
 		ctlrinterrupt(ctlr);
 		if(qh->state == Qdone){
+			iunlock(ctlr);
 			dqprint("ehci %#p: polling required\n", ctlr->capio);
 			ctlr->poll.must = 1;
 			pollcheck(hp);
+			ilock(ctlr);
 		}
 	}