]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: always check for stopped channel
authorAlex Elder <elder@linaro.org>
Tue, 30 Jun 2020 12:44:42 +0000 (07:44 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jun 2020 20:10:57 +0000 (13:10 -0700)
commitef30a67e4aa9a2a04100cc0bdd63318a2f4a3b17
treef33951b076bf46232b825b6d97e65a462135065b
parentbe2daa759f2d512ee1d654f4ed5167c1e2c1c86c
net: ipa: always check for stopped channel

In gsi_channel_stop(), there's a check to see if the channel might
have entered STOPPED state since a previous call, which might have
timed out before stopping completed.

That check actually belongs in gsi_channel_stop_command(), which is
called repeatedly by gsi_channel_stop() for RX channels.

Fixes: 31210ccab1a3 ("soc: qcom: ipa: the generic software interface")
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/gsi.c