]> git.itanic.dy.fi Git - linux-stable/commit
net: ipa: introduce ipa_interrupt_enable()
authorAlex Elder <elder@linaro.org>
Wed, 4 Jan 2023 17:52:29 +0000 (11:52 -0600)
committerJakub Kicinski <kuba@kernel.org>
Fri, 6 Jan 2023 06:03:13 +0000 (22:03 -0800)
commit8e461e1f092b22d9ae1b7764bf7c85d1992c56e3
treee6c6adce39c56558b8f4ec78c033f6c8c84a5448
parente5709b7c1ede61e6fc7fe70391b1cbe44323861a
net: ipa: introduce ipa_interrupt_enable()

Create new function ipa_interrupt_enable() to encapsulate enabling
one of the IPA interrupt types.  Introduce ipa_interrupt_disable()
to reverse that operation.  Add a helper function to factor out the
common register update used by both.

Use these in ipa_interrupt_add() and ipa_interrupt_remove().

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