]> git.baikalelectronics.ru Git - kernel.git/commit
staging: greybus: Fix the irq API abuse
authorThomas Gleixner <tglx@linutronix.de>
Fri, 6 Mar 2020 13:24:13 +0000 (14:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Mar 2020 09:15:22 +0000 (10:15 +0100)
commit415a955f247c57df471d805411c348a6de488f61
tree4229841e84f6ef6d0c08827e1f7387e65965eb42
parent9488b8fd3f01d6d91aea1892ca102b477e24d66d
staging: greybus: Fix the irq API abuse

Nothing outside of low level architecture code is supposed to look up
interrupt descriptors and fiddle with them.

Replace the open coded abuse by calling generic_handle_irq().

This still does not explain why and in which context this connection
magic is injecting interrupts in the first place and why this is correct
and safe, but at least the API abuse is gone.

Fixes: 036aad9d0224 ("greybus: gpio: add interrupt handling support")
Fixes: 2611ebef8322 ("greybus: gpio: don't call irq-flow handler directly")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/87o8t9boqq.fsf@nanos.tec.linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/gpio.c