Skip to content

Commit

Permalink
ARM: EXYNOS4: add required chained_irq_enter/exit to eint code
Browse files Browse the repository at this point in the history
This patch adds chained IRQ enter/exit functions to external interrupt
handler in order to function correctly on primary controllers with
different methods of flow control.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
  • Loading branch information
Marek Szyprowski authored and Kukjin Kim committed Aug 19, 2011
1 parent 995b528 commit 70b0e82
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/arm/mach-exynos4/irq-eint.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

#include <mach/regs-gpio.h>

#include <asm/mach/irq.h>

static DEFINE_SPINLOCK(eint_lock);

static unsigned int eint0_15_data[16];
Expand Down Expand Up @@ -184,15 +186,19 @@ static inline void exynos4_irq_demux_eint(unsigned int start)

static void exynos4_irq_demux_eint16_31(unsigned int irq, struct irq_desc *desc)
{
struct irq_chip *chip = irq_get_chip(irq);
chained_irq_enter(chip, desc);
exynos4_irq_demux_eint(IRQ_EINT(16));
exynos4_irq_demux_eint(IRQ_EINT(24));
chained_irq_exit(chip, desc);
}

static void exynos4_irq_eint0_15(unsigned int irq, struct irq_desc *desc)
{
u32 *irq_data = irq_get_handler_data(irq);
struct irq_chip *chip = irq_get_chip(irq);

chained_irq_enter(chip, desc);
chip->irq_mask(&desc->irq_data);

if (chip->irq_ack)
Expand All @@ -201,6 +207,7 @@ static void exynos4_irq_eint0_15(unsigned int irq, struct irq_desc *desc)
generic_handle_irq(*irq_data);

chip->irq_unmask(&desc->irq_data);
chained_irq_exit(chip, desc);
}

int __init exynos4_init_irq_eint(void)
Expand Down

0 comments on commit 70b0e82

Please sign in to comment.