]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0764f1fe11c48dc5190885d5a139ce3ad44c4061
tree5ae2f326eb84e8801bada0c636d5adb1108f3e2a
parent0d13a0ea5a02698112a8bfc186dce62b28b6785e
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