]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: ignore CHANNEL_NOT_RUNNING errors
authorAlex Elder <elder@linaro.org>
Thu, 19 Nov 2020 22:49:26 +0000 (16:49 -0600)
committerJakub Kicinski <kuba@kernel.org>
Sat, 21 Nov 2020 02:45:52 +0000 (18:45 -0800)
commit1bc44f2c2cf53aeb4281bf19422cc2edc0e68cbf
tree406f8539fcacda9b02e1e71b7c50dba0e56a345c
parent6c10193c464153a272d53d6ae435347ce52f60ed
net: ipa: ignore CHANNEL_NOT_RUNNING errors

IPA v4.2 has a hardware quirk that requires the AP to allocate GSI
channels for the modem to use.  It is recommended that these modem
channels get stopped (with a HALT generic command) by the AP when
its IPA driver gets removed.

The AP has no way of knowing the current state of a modem channel.
So when the IPA driver issues a HALT command it's possible the
channel is not running, and in that case we get an error indication.
This error simply means we didn't need to stop the channel, so we
can ignore it.

This patch adds an explanation for this situation, and arranges for
this condition to *not* report an error message.

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