ref: 46f916df8b52b4b553d3d6c0c1bb4f9f84940e37
parent: c460fb35a4b9a84ca7f40666f6b8ccdc2fed535b
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);
}
--
⑨