From: Eunki Kim Date: Fri, 14 Feb 2014 06:00:48 +0000 (+0900) Subject: [COMMON] irqchip: gic: map irq_enable/irq_disable to gic_unmask_irq/gic_mask_irq X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=146bc06f65a3c7070d7c3236986d5dee10bd89fe;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] irqchip: gic: map irq_enable/irq_disable to gic_unmask_irq/gic_mask_irq It's possible to occur the spurious interrupt from the device. However, it could be problem when it used for level interrupt. This patch declares irq_disable to mask_irq in order to prevent from the spurious interrupts and does irq_enable to unmak_irq pairly. Change-Id: Iec8de4232f67d2f9ab8762b481c2e4049bf7898c Signed-off-by: Eunki Kim Signed-off-by: Hosung Kim Signed-off-by: Hyunki Koo --- diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c index 1dfd032bc198..fc1675505496 100644 --- a/drivers/irqchip/irq-gic.c +++ b/drivers/irqchip/irq-gic.c @@ -436,6 +436,9 @@ static void gic_handle_cascade_irq(struct irq_desc *desc) } static const struct irq_chip gic_chip = { + .name = "GIC", + .irq_disable = gic_mask_irq, + .irq_enable = gic_unmask_irq, .irq_mask = gic_mask_irq, .irq_unmask = gic_unmask_irq, .irq_eoi = gic_eoi_irq,