]> git.baikalelectronics.ru Git - 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)
commit93862e597e37b573566825974b7f83c3211da540
tree43ab67d0929aba6632dcfc6f1774a8e835c1eb01
parentc9a08a1e1769a4f149bafda77c5b688be706a8c0
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