OSDN Git Service

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)
commitb1750723c99c5a4d9b452b5e51a9fd3227fceecb
tree00a0230c581dae019e77b9a37874750a7f958e7d
parent63ec9be13372759511ea868dbc59f439e936d2c6
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