summaryrefslogtreecommitdiff
path: root/sys/src/9
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-11-15 14:34:17 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2020-11-15 14:34:17 +0100
commit2a946b24a6b9ff38a33e27d54b46dbb898373267 (patch)
tree0b0f2a506f0fb7eca87cc38bdd98231a7008b805 /sys/src/9
parent0c846e605b33e86a35dd6562df168a8b1a6beeae (diff)
audiohda: do not enable interrupts before intrenable()
When using /dev/reboot, the MSI vecor might have already been setup causing interrupts to fire on the designated cpu while we send the commands to the card.
Diffstat (limited to 'sys/src/9')
-rw-r--r--sys/src/9/pc/audiohda.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/9/pc/audiohda.c b/sys/src/9/pc/audiohda.c
index da427e352..82702531b 100644
--- a/sys/src/9/pc/audiohda.c
+++ b/sys/src/9/pc/audiohda.c
@@ -1752,9 +1752,6 @@ hdastart(Ctlr *ctlr)
waitup8(ctlr, Rirbctl, Rirbdma, Rirbdma);
- /* enable interrupts */
- csr32(ctlr, Intctl) |= Gie | Cie;
-
return 0;
}
@@ -1958,6 +1955,9 @@ hdareset1(Audio *adev, Ctlr *ctlr)
adev->ctl = hdactl;
intrenable(irq, hdainterrupt, adev, tbdf, "hda");
+
+ /* enable interrupts */
+ csr32(ctlr, Intctl) |= Gie | Cie;
ctlr->q = qopen(256, 0, 0, 0);