DORMANTno replies

[PATCH] ARM: ux500: implement set_wake() callback for the GIC

From: Linus Walleij <hidden>
Date: 2012-08-22 09:12:28
Subsystem: arm port, arm/nomadik/ux500 architectures, the rest · Maintainers: Russell King, Linus Walleij, Linus Torvalds

From: Linus Walleij <redacted>

The Ux500 will be able to wake up on any IRQ, so implement a
.set_wake() callback that just returns 0 instead of the default
in common/gic.c which returns an error if you try to set
wakeup on the GIC.

Signed-off-by: Linus Walleij <redacted>
---
 arch/arm/mach-ux500/cpu.c | 7 +++++++
 1 file changed, 7 insertions(+)
diff --git a/arch/arm/mach-ux500/cpu.c b/arch/arm/mach-ux500/cpu.c
index e2360e7..24598e2 100644
--- a/arch/arm/mach-ux500/cpu.c
+++ b/arch/arm/mach-ux500/cpu.c
@@ -46,11 +46,18 @@ static const struct of_device_id ux500_dt_irq_match[] = {
 	{},
 };
 
+static int ux500_gic_irq_set_wake(struct irq_data *d, unsigned int on)
+{
+	return 0;
+}
+
 void __init ux500_init_irq(void)
 {
 	void __iomem *dist_base;
 	void __iomem *cpu_base;
 
+	gic_arch_extn.irq_set_wake = ux500_gic_irq_set_wake;
+
 	if (cpu_is_u8500_family()) {
 		dist_base = __io_address(U8500_GIC_DIST_BASE);
 		cpu_base = __io_address(U8500_GIC_CPU_BASE);
-- 
1.7.11.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help