]> 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)
commit1eb66093aa5e0349af3c1bad87b540e7e778743d
tree5ae2f326eb84e8801bada0c636d5adb1108f3e2a
parentd6ca1f8d8a82a45f79a90469acc66d40e69c15c0
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