]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mailbox: imx: Skip the suspend flag for i.MX7ULP
authorJacky Bai <ping.bai@nxp.com>
Tue, 16 Dec 2025 08:00:54 +0000 (16:00 +0800)
committerJassi Brar <jassisinghbrar@gmail.com>
Sun, 25 Jan 2026 00:42:39 +0000 (18:42 -0600)
commit673b570825ace0dcb2ac0c676080559d505c6f40
treef2b112c90d708648a3e8a1174207879591728a96
parent6b0eadf69bd1b33e887f5f089e056739921ebe42
mailbox: imx: Skip the suspend flag for i.MX7ULP

In current imx-mailbox driver, the MU IRQ is configured with
'IRQF_NO_SUSPEND' flag set. So during linux suspend/resume flow,
the MU IRQ is always enabled. With commit 892cb524ae8a ("mailbox: imx:
fix wakeup failure from freeze mode"), if the MU IRQ is triggered after
the priv->suspended flag has been set, the system suspend will be
aborted.

On i.MX7ULP platform, certain drivers that depend on rpmsg may need
to send rpmsg request and receive an acknowledgment from the remote
core during the late_suspend stage. Early suspend abort is not
expected, and the i.MX7ULP already has additional hardware and
software to make sure the system can be wakeup from freeze mode
correctly when MU IRQ is trigger.

Skip the 'suspend' flag handling logic on i.MX7ULP to avoid the
early abort when doing suspend.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
drivers/mailbox/imx-mailbox.c