]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net: ipa: set up IPA interrupts earlier
authorAlex Elder <elder@linaro.org>
Mon, 26 Jul 2021 20:11:34 +0000 (15:11 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Jul 2021 22:09:18 +0000 (23:09 +0100)
commit1118a14710ee97292c52e0185d12caa3eb17ad55
tree43ab67d0929aba6632dcfc6f1774a8e835c1eb01
parent07e1f6897f735296aeff6c135cb8ddb4040a3e20
net: ipa: set up IPA interrupts earlier

Initialization of the IPA driver has several phases:
   - "init" phase can be done without any access to IPA hardware
   - "config" phase requires the IPA hardware to be clocked
   - "setup" phase requires the GSI layer to be functional

Currently, initialization for the IPA interrupt handling code occurs
in the setup phase.  It requires access to the IPA hardware but does
not need GSI, so it can be moved to the config phase instead.

Call the interrupt configuration function early in ipa_config()
rather than from ipa_setup().  Rename ipa_interrupt_setup() to be
ipa_interrupt_config(), and ipa_interrupt_teardown() to be
ipa_interupt_deconfig(), so their names properly indicate when
they get called.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/ipa_interrupt.c
drivers/net/ipa/ipa_interrupt.h
drivers/net/ipa/ipa_main.c