]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net: ipa: only enable GSI general IRQs when needed
authorAlex Elder <elder@linaro.org>
Thu, 5 Nov 2020 18:14:06 +0000 (12:14 -0600)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 Nov 2020 23:39:17 +0000 (15:39 -0800)
commit352f26a886d859927310a9dfdbaf1a989dfb18ca
treec1424d35d3e5ad4006308afafbb324480c74adb9
parent46f748ccaf011af0beccbfc7ae27f3f6c9a56472
net: ipa: only enable GSI general IRQs when needed

Most GSI general errors are unrecoverable without a full reset.
Despite that, we want to receive these errors so we can at least
report what happened before whatever undefined behavior ensues.

Explicitly disable all such interrupts in gsi_irq_setup(), then
enable those we want in gsi_irq_enable().  List the interrupt types
we are interested in (everything but breakpoint) explicitly rather
than using GSI_CNTXT_GSI_IRQ_ALL, and remove that symbol's
definition.

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