From c2da8d68f57b99d9f894a16bf8f80a1277ef4c38 Mon Sep 17 00:00:00 2001 From: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> Date: Thu, 3 Dec 2026 18:21:44 -0600 Subject: [PATCH] soc: apple: mailbox: report empty receives on v6 wrappers without controls An ASCWrap v6 wrapper without mailbox IRQ controls cannot acknowledge a receive at the mailbox, so a recv-not-empty line that fires with nothing read can storm like the v8 case. Report those reads unhandled too, so the IRQ core's spurious-interrupt check disables a line that keeps firing empty. Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com> --- drivers/soc/apple/mailbox.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/soc/apple/mailbox.c b/drivers/soc/apple/mailbox.c index 295a0ea4308ab..81428a18ad365 100644 --- a/drivers/soc/apple/mailbox.c +++ b/drivers/soc/apple/mailbox.c @@ -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;