]> git.itanic.dy.fi Git - linux-stable/commit
net: ipa: introduce a common microcontroller interrupt handler
authorAlex Elder <elder@linaro.org>
Wed, 4 Jan 2023 17:52:28 +0000 (11:52 -0600)
committerJakub Kicinski <kuba@kernel.org>
Fri, 6 Jan 2023 06:03:13 +0000 (22:03 -0800)
commite5709b7c1ede61e6fc7fe70391b1cbe44323861a
tree0f3dad6a48de1cfb044aecf5574d1564881f713c
parentafd50da912865732c28afebd3ff075558694a55c
net: ipa: introduce a common microcontroller interrupt handler

The prototype for an IPA interrupt handler supplies the IPA
interrupt ID, so it's possible to use a single function to handle
any type of microcontroller interrupt.

Introduce ipa_uc_interrupt_handler(), which calls the event or the
response handler depending on the IRQ ID provided.  Register the new
function as the handler for both microcontroller IPA interrupt types.

The called functions don't use their "irq_id" arguments, so remove
them.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/ipa_uc.c