Skip to content
This repository was archived by the owner on Feb 9, 2023. It is now read-only.

Commit fe27f16

Browse files
committed
ARM: OMAP2+: Fix sar_base inititalization for HS omaps
HS omaps use irq_save_secure_context() instead of irq_save_context() so sar_base will never get initialized and irq_sar_clear() gets called with a wrong address for HS omaps from irq_restore_context(). Starting with commit f4b9f40 ("ARM: OMAP4+: Initialize SAR RAM base early for proper CPU1 reset for kexec") we have it available, and this ideally would been fixed with that commit already. Fixes: f4b9f40 ("ARM: OMAP4+: Initialize SAR RAM base early for proper CPU1 reset for kexec") Cc: Andrew F. Davis <[email protected]> Cc: Dave Gerlach <[email protected]> Cc: Keerthy <[email protected]> Cc: Santosh Shilimkar <[email protected]> Cc: Tero Kristo <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent d3be6d2 commit fe27f16

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/arm/mach-omap2/omap-wakeupgen.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,6 @@ static void irq_save_context(void)
299299
if (soc_is_dra7xx())
300300
return;
301301

302-
if (!sar_base)
303-
sar_base = omap4_get_sar_ram_base();
304302
if (wakeupgen_ops && wakeupgen_ops->save_context)
305303
wakeupgen_ops->save_context();
306304
}
@@ -598,6 +596,8 @@ static int __init wakeupgen_init(struct device_node *node,
598596
irq_hotplug_init();
599597
irq_pm_init();
600598

599+
sar_base = omap4_get_sar_ram_base();
600+
601601
return 0;
602602
}
603603
IRQCHIP_DECLARE(ti_wakeupgen, "ti,omap4-wugen-mpu", wakeupgen_init);

0 commit comments

Comments
 (0)