net: ipa: request GSI IRQ later
authorAlex Elder <elder@linaro.org>
Thu, 5 Nov 2020 18:13:56 +0000 (12:13 -0600)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 Nov 2020 23:39:16 +0000 (15:39 -0800)
commit0b8d6761084511188f0eb197da2c1d2318524b9c
tree5ae2f326eb84e8801bada0c636d5adb1108f3e2a
parent4a04d65c964ea47fb1b32e6821e7fa9f086cedd3
net: ipa: request GSI IRQ later

Introduce gsi_irq_init() and gsi_irq_exit(), to encapsulate looking
up the GSI IRQ and registering its handler.  Call gsi_irq_init() a
little later in gsi_init(), and initialize the completion earlier.
The IRQ handler accesses both the GSI virtual memory pointer and the
completion, and this way these things will have been initialized
before the gsi_irq() can ever be called.

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