]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: disable interrupt and NAPI after channel stop
authorAlex Elder <elder@linaro.org>
Mon, 1 Feb 2021 17:28:48 +0000 (11:28 -0600)
committerJakub Kicinski <kuba@kernel.org>
Wed, 3 Feb 2021 01:42:36 +0000 (17:42 -0800)
commit429573892961271d419016176ef0b169c3f74a2f
treebffbcadeba58c45c33a966f0b45d858acee5e3ab
parent6d19a59a1c995e1658629ba5b8ff76a397dcce6c
net: ipa: disable interrupt and NAPI after channel stop

Disable both the I/O completion interrupt and NAPI polling on a
channel *after* we successfully stop it rather than before.  This
ensures a completion occurring just before the channel is stopped
gets processed.

Enable NAPI polling and the interrupt *before* starting a channel
rather than after, to be symmetric.  A stopped channel won't
generate any completion interrupts anyway.

Enable NAPI before the interrupt and disable it afterward.

Signed-off-by: Alex Elder <elder@linaro.org>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/gsi.c