OSDN Git Service

net: ipa: disable all GSI interrupt types initially
authorAlex Elder <elder@linaro.org>
Thu, 5 Nov 2020 18:13:59 +0000 (12:13 -0600)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 Nov 2020 23:39:16 +0000 (15:39 -0800)
commit97eb94c8c79059966cedd66312e004c6070033f6
tree96082a083a1567f7010e4881674a4fb389eba2cc
parentf9b28804ab50eb951c50f4c5afec77ab0435309a
net: ipa: disable all GSI interrupt types initially

Introduce gsi_irq_setup() and gsi_irq_teardown() to disable all
GSI interrupts when first setting up GSI hardware, and to clean
things up when we're done.

Re-enable all GSI interrupt types in gsi_irq_enable(), but do
so only after each of the type-specific interrupt masks has
been configured.  Similarly, disable all interrupt types in
gsi_irq_disable()--first--before zeroing out the type-specific
masks.

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