From: Lorenzo Pieralisi Date: Tue, 5 Feb 2013 11:09:16 +0000 (+0000) Subject: ARM: TC2: disable GIC CPU IF on power down X-Git-Tag: firefly_0821_release~3680^2~236^2^2~2^2~10 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0b94e1be54079c872d8081c4de6ca667dbc4b488;p=firefly-linux-kernel-4.4.55.git ARM: TC2: disable GIC CPU IF on power down On TC2 testchip the GIC CPU IF must be disabled before powering down a core since a pending IRQ might cause wfi completion and the processor would exit wfi state while power controller is taking action to reset or power up the CPU upon IRQ reception. This patch adds code that disables the GIC CPU IF in TC2 specific power API methods. Signed-off-by: Lorenzo Pieralisi --- diff --git a/arch/arm/mach-vexpress/tc2_pm.c b/arch/arm/mach-vexpress/tc2_pm.c index 4be2d73cb387..8be975e4b31d 100644 --- a/arch/arm/mach-vexpress/tc2_pm.c +++ b/arch/arm/mach-vexpress/tc2_pm.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include @@ -116,6 +117,8 @@ static void tc2_pm_power_down(void) } else BUG(); + gic_cpu_if_down(); + if (last_man && __mcpm_outbound_enter_critical(cpu, cluster)) { arch_spin_unlock(&tc2_pm_lock);