]> 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)
commit82a6bc8544bb45e74266d077f34b812c3df867f9
tree00a0230c581dae019e77b9a37874750a7f958e7d
parent7c7c22d4c869f67d28948bb29c4d70a7a3fa8706
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