shithub: riscv

Download patch

ref: e0e2e9d81b4dbdabb7521dcc68e9f980f26cc3a9
parent: f9279fa422413a9570c49b766f41a2d2be1f7320
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Thu Aug 18 20:26:50 EDT 2022

imx8/sai: do not strangle the core with interrupts on underruns

--- a/sys/src/9/imx8/sai.c
+++ b/sys/src/9/imx8/sai.c
@@ -306,11 +306,10 @@
 			if(buffered(r) < 128*Byteps) /* having less than fifo buffered */
 				saistop(ctlr);
 			else if(fifo(ctlr, (128-Wmark)*Byteps) > 0)
-				v |= TCSR_TE;
+				wr(TCSR, v | TCSR_TE | TCSR_FEF);
 		}
 		wakeup(&r->r);
 	}
-	wr(TCSR, v | TCSR_FEF);
 	iunlock(ctlr);
 }