Skip to contentSkip to conversation

mailbox: cix: Add IRQF_NO_SUSPEND to mailbox interrupt

PATCH Applied Dylan Wu 2 participants 2 messages Feb 9 – Mar 29

Subsystems (2)
lore
Share & tools
lore

Dylan Wu

author
#0 lore raw

PATCH 1/1 mailbox: cix: Add IRQF_NO_SUSPEND to mailbox interrupt

During the system suspend process, device interrupts are masked in the noirq phase. However, SCMI often needs to exchange final messages with the firmware to complete the power-down transition. Without the IRQF_NO_SUSPEND flag, the mailbox ISR cannot run during this late stage, leading to SCMI communication timeouts and error messages like "SCMI protocol wait for resp timeout" during suspend.

Add the IRQF_NO_SUSPEND flag to the interrupt request to ensure the mailbox can continue to handle responses during the noirq stages of suspend and resume, thereby ensuring a reliable power state transition.

---
 drivers/mailbox/cix-mailbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mailbox/cix-mailbox.c +1 -1
index 5bb1416c26a5..5e27c2bf3492 100644
@@ -405,7 +405,7 @@ static int cix_mbox_startup(struct mbox_chan *chan)
 	int index = cp->index, ret;
 	u32 val;
 
-	ret = request_irq(priv->irq, cix_mbox_isr, 0,
+	ret = request_irq(priv->irq, cix_mbox_isr, IRQF_NO_SUSPEND,
 			  dev_name(priv->dev), chan);
 	if (ret) {
 		dev_err(priv->dev, "Unable to acquire IRQ %d\n", priv->irq);
Signature · 1 line
2.52.0
maintainer Applied
#1 lore raw
Quoted 31 lines · Dylan Wu

During the system suspend process, device interrupts are masked in the noirq phase. However, SCMI often needs to exchange final messages with the firmware to complete the power-down transition. Without the IRQF_NO_SUSPEND flag, the mailbox ISR cannot run during this late stage, leading to SCMI communication timeouts and error messages like "SCMI protocol wait for resp timeout" during suspend.

Add the IRQF_NO_SUSPEND flag to the interrupt request to ensure the mailbox can continue to handle responses during the noirq stages of suspend and resume, thereby ensuring a reliable power state transition.

---
 drivers/mailbox/cix-mailbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mailbox/cix-mailbox.c +1 -2
index 5bb1416c26a5..5e27c2bf3492 100644
@@ -405,7 +405,7 @@ static int cix_mbox_startup(struct mbox_chan *chan)
        int index = cp->index, ret;
        u32 val;
 
-       ret = request_irq(priv->irq, cix_mbox_isr, 0,
+       ret = request_irq(priv->irq, cix_mbox_isr, IRQF_NO_SUSPEND,
                          dev_name(priv->dev), chan);
        if (ret) {
                dev_err(priv->dev, "Unable to acquire IRQ %d\n", priv->irq);
--
Quoted 2 lines

2.52.0

Applied to mailbox/for-next
Thanks
Jassi