Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions drivers/soc/apple/mailbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -919,12 +919,14 @@ static irqreturn_t apple_mbox_recv_irq(int irq, void *data)
usleep_range(1000, 2000);

/*
* ASCWrap v8 cannot acknowledge a receive at the mailbox, so a level
* line that fires with nothing read (PSD not powered, or an empty
* FIFO) fires again at once. Report it unhandled, so that the IRQ
* core disables a line that keeps doing that.
* An ASCWrap mailbox without IRQ controls cannot acknowledge a
* receive at the mailbox, so a level line that fires with nothing
* read (PSD not powered, or an empty FIFO) fires again at once.
* Report it unhandled, so that the IRQ core disables a line that
* keeps doing that.
*/
if (mbox->hw->is_ascwrap_v8 && consumed <= 0)
if ((mbox->hw->is_ascwrap_v8 || mbox->hw->is_ascwrap_v6) &&
!mbox->hw->has_irq_controls && consumed <= 0)
return IRQ_NONE;

return IRQ_HANDLED;
Expand Down
Loading