[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1591161344-12885-1-git-send-email-Anson.Huang@nxp.com>
Date: Wed, 3 Jun 2020 13:15:41 +0800
From: Anson Huang <Anson.Huang@....com>
To: jassisinghbrar@...il.com, shawnguo@...nel.org,
s.hauer@...gutronix.de, kernel@...gutronix.de, festevam@...il.com,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Cc: Linux-imx@....com
Subject: [PATCH 0/3] Handle mailbox clock/power management related issues
Current i.MX mailbox driver mainly supports 2 series i.MX SoCs with
different architecture, one is for i.MX8X platforms with SCU inside,
the other is for i.MX6/7/8M series without SCU.
For i.MX8X, 2 types of MU are supported, one is for system IPC, such kind
of MU has no clock/power assignment, they are both controlled by SCU. The
other is for application, such kind of MU has no clock assignment, but have
power domain assignment, consumers need to call mailbox APIs to manage MU
power in runtime;
For i.MX6/7/8M, MU clock or power could be assigned based on different SoCs,
but all the MUs are for application, consumers need to call mailbox APIs to
manage MU clock/power in runtime.
For the power management related issue mentioned above, they are as below:
1. clock should be managed in runtime to make sure MU clock/power can be off
on i.MX6/7/8M platforms;
2. ONLY system IPC MU needs to have IRQF_NO_SUSPEND flag set, other application
MU no need to have this flag, since the MU clock/power is OFF in noirq
suspend phase and if MU interrupt arrives, with IRQF_NO_SUSPEND flag set,
the MU ISR will try to access MU register and lead to system hang because
of clock/power disabled;
To distinguish these different MU instances, use MU's clock/power assignment
status to decide whether to save/restore MU context during suspend/resume,
whether to have IRQF_NO_SUSPEND flag set, etc..
patch #1 is identical with https://patchwork.kernel.org/patch/11581215/, the
patch #2/#3 depend on #1, so I resend #1 in this series to make them as a whole
series.
Anson Huang (2):
mailbox: imx: Add runtime PM callback to handle MU clocks
mailbox: imx: ONLY IPC MU needs IRQF_NO_SUSPEND flag
Dong Aisheng (1):
mailbox: imx: Add context save/restore for suspend/resume
drivers/mailbox/imx-mailbox.c | 72 +++++++++++++++++++++++++++++++++++++++++--
1 file changed, 69 insertions(+), 3 deletions(-)
--
2.7.4
Powered by blists - more mailing lists