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.
This commit is contained in:
parent
0c846e605b
commit
2a946b24a6
1 changed files with 3 additions and 3 deletions
|
@ -1752,9 +1752,6 @@ hdastart(Ctlr *ctlr)
|
||||||
|
|
||||||
waitup8(ctlr, Rirbctl, Rirbdma, Rirbdma);
|
waitup8(ctlr, Rirbctl, Rirbdma, Rirbdma);
|
||||||
|
|
||||||
/* enable interrupts */
|
|
||||||
csr32(ctlr, Intctl) |= Gie | Cie;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1958,6 +1955,9 @@ hdareset1(Audio *adev, Ctlr *ctlr)
|
||||||
adev->ctl = hdactl;
|
adev->ctl = hdactl;
|
||||||
|
|
||||||
intrenable(irq, hdainterrupt, adev, tbdf, "hda");
|
intrenable(irq, hdainterrupt, adev, tbdf, "hda");
|
||||||
|
|
||||||
|
/* enable interrupts */
|
||||||
|
csr32(ctlr, Intctl) |= Gie | Cie;
|
||||||
|
|
||||||
ctlr->q = qopen(256, 0, 0, 0);
|
ctlr->q = qopen(256, 0, 0, 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue