]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
genirq/generic_chip: Add irq_unmap callback
authorSebastian Frias <sf84@laposte.net>
Mon, 1 Aug 2016 14:27:38 +0000 (16:27 +0200)
committerJiri Slaby <jslaby@suse.cz>
Tue, 8 Nov 2016 15:38:25 +0000 (16:38 +0100)
commitdbec46d6eeeee4e60cdf6fc24d94a4228e3a8e32
tree74738f9bd11326612d47839dc6646732eae2e33f
parent28fe711180ecba29d36063c8ae37b29469e61cd6
genirq/generic_chip: Add irq_unmap callback

commit ee26c013cdee0b947e29d6cadfb9ff3341c69ff9 upstream.

Without this patch irq_domain_disassociate() cannot properly release the
interrupt. In fact, irq_map_generic_chip() checks a bit on 'gc->installed'
but said bit is never cleared, only set.

Commit 088f40b7b027 ("genirq: Generic chip: Add linear irq domain support")
added irq_map_generic_chip() function and also stated "This lacks a removal
function for now".

This commit provides an implementation of an unmap function that can be
called by irq_domain_disassociate().

[ tglx: Made the function static and removed the export as we have neither
   a prototype nor a modular user. ]

[js] use irq_get_irq_data, irq_set_chip_and_handler, and
     irq_set_chip_data in 3.12

Fixes: 088f40b7b027 ("genirq: Generic chip: Add linear irq domain support")
Signed-off-by: Sebastian Frias <sf84@laposte.net>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Mason <slash.tmp@free.fr>
Cc: Jason Cooper <jason@lakedaemon.net>
Link: http://lkml.kernel.org/r/579F5C5A.2070507@laposte.net
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
kernel/irq/generic-chip.c