mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 06:04:44 +01:00
mailbox: sprd: mask interrupts that are not handled
To reduce the amount of spurious interrupts, disable the interrupts that are not handled in this driver. Signed-off-by: Otto Pflüger <otto.pflueger@abscue.de> Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
This commit is contained in:
parent
c6ff944003
commit
75df94d05f
1 changed files with 4 additions and 6 deletions
|
|
@ -282,21 +282,19 @@ static int sprd_mbox_startup(struct mbox_chan *chan)
|
|||
/* Select outbox FIFO mode and reset the outbox FIFO status */
|
||||
writel(0x0, priv->outbox_base + SPRD_MBOX_FIFO_RST);
|
||||
|
||||
/* Enable inbox FIFO overflow and delivery interrupt */
|
||||
val = readl(priv->inbox_base + SPRD_MBOX_IRQ_MSK);
|
||||
val &= ~(SPRD_INBOX_FIFO_OVERFLOW_IRQ | SPRD_INBOX_FIFO_DELIVER_IRQ);
|
||||
/* Enable inbox FIFO delivery interrupt */
|
||||
val = SPRD_INBOX_FIFO_IRQ_MASK;
|
||||
val &= ~SPRD_INBOX_FIFO_DELIVER_IRQ;
|
||||
writel(val, priv->inbox_base + SPRD_MBOX_IRQ_MSK);
|
||||
|
||||
/* Enable outbox FIFO not empty interrupt */
|
||||
val = readl(priv->outbox_base + SPRD_MBOX_IRQ_MSK);
|
||||
val = SPRD_OUTBOX_FIFO_IRQ_MASK;
|
||||
val &= ~SPRD_OUTBOX_FIFO_NOT_EMPTY_IRQ;
|
||||
writel(val, priv->outbox_base + SPRD_MBOX_IRQ_MSK);
|
||||
|
||||
/* Enable supplementary outbox as the fundamental one */
|
||||
if (priv->supp_base) {
|
||||
writel(0x0, priv->supp_base + SPRD_MBOX_FIFO_RST);
|
||||
val = readl(priv->supp_base + SPRD_MBOX_IRQ_MSK);
|
||||
val &= ~SPRD_OUTBOX_FIFO_NOT_EMPTY_IRQ;
|
||||
writel(val, priv->supp_base + SPRD_MBOX_IRQ_MSK);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue