Skip to content

Commit 783f3db

Browse files
oleremShawn Guo
authored andcommitted
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: 8148d21 ("ARM: imx6: register pm_power_off handler if "fsl,pmic-stby-poweroff" is set") Signed-off-by: Oleksij Rempel <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent 8b94aa3 commit 783f3db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/arm/mach-imx/pm-imx6.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <linux/io.h>
1111
#include <linux/irq.h>
1212
#include <linux/genalloc.h>
13+
#include <linux/irqchip/arm-gic.h>
1314
#include <linux/mfd/syscon.h>
1415
#include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
1516
#include <linux/of.h>
@@ -619,6 +620,7 @@ static void __init imx6_pm_common_init(const struct imx6_pm_socdata
619620

620621
static void imx6_pm_stby_poweroff(void)
621622
{
623+
gic_cpu_if_down(0);
622624
imx6_set_lpm(STOP_POWER_OFF);
623625
imx6q_suspend_finish(0);
624626

0 commit comments

Comments
 (0)