]> 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)
commit97ddb19c2a3d4f0ac3bda6324a26611f45a670b7
tree43ab67d0929aba6632dcfc6f1774a8e835c1eb01
parentea7eeb4befbbd2c71f641dc0b1b5e76e3c1ed27d
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