]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip: sun7i/sun6i: Disable NMI before registering the handler
authorHans de Goede <hdegoede@redhat.com>
Thu, 27 Mar 2014 17:02:39 +0000 (18:02 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 31 Mar 2014 09:12:57 +0000 (11:12 +0200)
commit388f289a4e1583175caf9bb4f6d9cf0b3c139297
treeac35aeb574347061db21ee7d5405efaf265bb702
parent7ed1a2087eeb73a433825e453a4eaacdbbb7b5a3
irqchip: sun7i/sun6i: Disable NMI before registering the handler

It is advisable to disable the NMI before registering the IRQ handler as
registering the IRQ handler unmasks the IRQ on the GIC, so if U-Boot has
left the NMI enabled and the NMI pin is active we will immediately get
an interrupt before any driver has claimed the downstream interrupt of
the NMI.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Carlo Caione <carlo@caione.org>
Cc: maxime.ripard@free-electrons.com
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-sunxi@googlegroups.com
Link: http://lkml.kernel.org/r/1395939759-11135-3-git-send-email-carlo@caione.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/irqchip/irq-sunxi-nmi.c