Skip to content

Commit 0caf847

Browse files
Anson-HuangShawn Guo
authored andcommitted
firmware: imx: make sure MU irq can wake up system from suspend mode
IRQF_NO_SUSPEND flag is set for MU IRQ of IPC work, but with this flag set, IRQD_WAKEUP_ARMED flag will NOT be set during suspend_device_irq() phase, then when MU IRQ arrives, it will NOT wake up system from suspend. To fix this issue, pm_system_wakeup() is called in general MU IRQ handler to make sure system can be waked up when MU IRQ arrives. Signed-off-by: Anson Huang <[email protected]> Reviewed-by: Dong Aisheng <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent b3a9e3b commit 0caf847

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/firmware/imx/imx-scu-irq.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <linux/firmware/imx/ipc.h>
1111
#include <linux/firmware/imx/sci.h>
1212
#include <linux/mailbox_client.h>
13+
#include <linux/suspend.h>
1314

1415
#define IMX_SC_IRQ_FUNC_ENABLE 1
1516
#define IMX_SC_IRQ_FUNC_STATUS 2
@@ -91,6 +92,7 @@ static void imx_scu_irq_work_handler(struct work_struct *work)
9192
if (!irq_status)
9293
continue;
9394

95+
pm_system_wakeup();
9496
imx_scu_irq_notifier_call_chain(irq_status, &i);
9597
}
9698
}

0 commit comments

Comments
 (0)