mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
ARM: imx6: disable the GIC CPU interface before calling stby-poweroff sequence
Any pending interrupt can prevent entering standby based power off state.
To avoid it, disable the GIC CPU interface.
Fixes: 8148d21360
("ARM: imx6: register pm_power_off handler if "fsl,pmic-stby-poweroff" is set")
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
This commit is contained in:
parent
8b94aa318a
commit
783f3db030
1 changed files with 2 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
#include <linux/irq.h>
|
#include <linux/irq.h>
|
||||||
#include <linux/genalloc.h>
|
#include <linux/genalloc.h>
|
||||||
|
#include <linux/irqchip/arm-gic.h>
|
||||||
#include <linux/mfd/syscon.h>
|
#include <linux/mfd/syscon.h>
|
||||||
#include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
|
#include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
|
||||||
#include <linux/of.h>
|
#include <linux/of.h>
|
||||||
|
@ -619,6 +620,7 @@ static void __init imx6_pm_common_init(const struct imx6_pm_socdata
|
||||||
|
|
||||||
static void imx6_pm_stby_poweroff(void)
|
static void imx6_pm_stby_poweroff(void)
|
||||||
{
|
{
|
||||||
|
gic_cpu_if_down(0);
|
||||||
imx6_set_lpm(STOP_POWER_OFF);
|
imx6_set_lpm(STOP_POWER_OFF);
|
||||||
imx6q_suspend_finish(0);
|
imx6q_suspend_finish(0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue