]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: synchronize NAPI only for suspend
authorAlex Elder <elder@linaro.org>
Fri, 5 Feb 2021 22:10:55 +0000 (16:10 -0600)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Feb 2021 22:57:16 +0000 (14:57 -0800)
commit06dd8b07885161b02c742bdb3e2c741138678c6d
tree00a0230c581dae019e77b9a37874750a7f958e7d
parent1627c6d822b7be343e104d16a5df2ad05f8e16f9
net: ipa: synchronize NAPI only for suspend

When stopping a channel, gsi_channel_stop() will ensure NAPI
polling is complete when it calls napi_disable().  So there is no
need to call napi_synchronize() in that case.

Move the call to napi_synchronize() out of __gsi_channel_stop()
and into gsi_channel_suspend(), so it's only used where needed.

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