git: 9front

Download patch

ref: 4ab0a70f241797b890ceacee70b5685479c93de7
parent: b4e26834de668da270ca52b83a59dd257cfc1ecb
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);
 		}
 	}
 
--