]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: disable IEOB interrupts before clearing
authorAlex Elder <elder@linaro.org>
Thu, 21 Jan 2021 11:48:21 +0000 (05:48 -0600)
committerJakub Kicinski <kuba@kernel.org>
Sat, 23 Jan 2021 21:16:00 +0000 (13:16 -0800)
commitff727b9317ec52a1a7fbf551517c81dc0d7b109d
treedf7ce15516fa77a8c134146282cff96aada52120
parent2142ebc4654763195d814ad6493a66885d26552d
net: ipa: disable IEOB interrupts before clearing

Currently in gsi_isr_ieob(), event ring IEOB interrupts are disabled
one at a time.  The loop disables the IEOB interrupt for all event
rings represented in the event mask.  Instead, just disable them all
at once.

Disable them all *before* clearing the interrupt condition.  This
guarantees we'll schedule NAPI for each event once, before another
IEOB interrupt could be signaled.

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