]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit66d93d7ff9c4d1f8a35519a62e3bacbbdd93b6e8
tree4229841e84f6ef6d0c08827e1f7387e65965eb42
parentadd1a2faba5dc6320a1f6e2167530c9174feb718
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