]> git.baikalelectronics.ru Git - kernel.git/commit
genirq: Skip chained interrupt trigger setup if type is IRQ_TYPE_NONE
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 19 Sep 2016 08:49:27 +0000 (09:49 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 19 Sep 2016 09:31:36 +0000 (11:31 +0200)
commit35b29c3d0fbb5505c6995d0d639e874ab0a07a56
tree7821bac4d017d04a8b6563493bb767af11b22f74
parentd72eab3189b114365644748c0ec93eb24f1c1f20
genirq: Skip chained interrupt trigger setup if type is IRQ_TYPE_NONE

There is no point in trying to configure the trigger of a chained
interrupt if no trigger information has been configured. At best
this is ignored, and at the worse this confuses the underlying
irqchip (which is likely not to handle such a thing), and
unnecessarily alarms the user.

Only apply the configuration if type is not IRQ_TYPE_NONE.

Fixes: 610e755e64e2 ("genirq: Correctly configure the trigger on chained interrupts")
Reported-and-tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Link: https://lkml.kernel.org/r/CAMuHMdVW1eTn20=EtYcJ8hkVwohaSuH_yQXrY2MGBEvZ8fpFOg@mail.gmail.com
Link: http://lkml.kernel.org/r/1474274967-15984-1-git-send-email-marc.zyngier@arm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/chip.c