Skip to contentSkip to conversation

ARM: S5P: Can handle edge interrupt handler

PATCH New Huisung Kang 1 participant 1 message Feb 11, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ARM: S5P: Can handle edge interrupt handler

From: KeyYoung Park <[email protected]>

While wake up, if external interrupt uses handle_level_irq
as handle_irq (it actually uses edge type irq), That interrupt is missed. So, if external uses edge type irq, it should use handle_edge_irq.

---
 arch/arm/plat-s5p/irq-eint.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
arch/arm/plat-s5p/irq-eint.c +5 -0
index c496b35..efdea58 100644
@@ -115,6 +115,11 @@ static int s5p_irq_eint_set_type(struct irq_data *data, unsigned int type)
 	else
 		printk(KERN_ERR "No such irq number %d", offs);
 
+	if (type & IRQ_TYPE_EDGE_BOTH)
+		__irq_set_handler_locked(data->irq, handle_edge_irq);
+	else
+		__irq_set_handler_locked(data->irq, handle_level_irq);
+
 	return 0;
 }
 
Signature · 1 line
1.7.1