net: ipa: always check for stopped channel
authorAlex Elder <elder@linaro.org>
Tue, 30 Jun 2020 12:44:42 +0000 (07:44 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jul 2020 07:33:57 +0000 (09:33 +0200)
commit7a29b159e0aa77e6016c99a1a08e9cde4ab6b1a0
tree15e38b76c8a82afa7497cd184172a9fc6bbb1971
parent8975d6b3a251e1cdb7af52dcd3eda633c7d94d32
net: ipa: always check for stopped channel

[ Upstream commit 5468cbcddf47f674829c6ada190283108a63d7b5 ]

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: 650d1603825d ("soc: qcom: ipa: the generic software interface")
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ipa/gsi.c