aboutsummaryrefslogtreecommitdiff
path: root/drivers/mfd
diff options
context:
space:
mode:
authorGravatar Russell King <rmk+kernel@arm.linux.org.uk> 2015-06-16 23:06:20 +0100
committerGravatar Thomas Gleixner <tglx@linutronix.de> 2015-06-18 14:03:08 +0200
commit3b0f95be143bea1aa47beb20134ef82e4e4068dc (patch)
tree730822397420dd40a9cf50d8b3bc26e829522ef5 /drivers/mfd
parentirqchip: exynos-combiner: Save IRQ enable set on suspend (diff)
downloadlinux-3b0f95be143bea1aa47beb20134ef82e4e4068dc.tar.gz
linux-3b0f95be143bea1aa47beb20134ef82e4e4068dc.tar.bz2
linux-3b0f95be143bea1aa47beb20134ef82e4e4068dc.zip
irq: Add irq_set_chained_handler_and_data()
Driver authors seem to get the ordering of irq_set_chained_handler() and irq_set_handler_data() wrong - ordering the former before the latter. This opens a race window where, if there is an interrupt pending, the handler will be called between these two calls, potentially resulting in an oops. Provide a single interface to set both of these together, especially as that's commonly what is required. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Cc: Alexandre Courbot <gnurou@gmail.com> Cc: Hans Ulli Kroll <ulli.kroll@googlemail.com> Cc: Jason Cooper <jason@lakedaemon.net> Cc: Lee Jones <lee.jones@linaro.org> Cc: Linus Walleij <linus.walleij@linaro.org> Cc: Thierry Reding <thierry.reding@gmail.com> Cc: linux-arm-kernel@lists.infradead.org Link: http://lkml.kernel.org/r/E1Z4yzs-0002Rw-4B@rmk-PC.arm.linux.org.uk Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/mfd')
0 files changed, 0 insertions, 0 deletions