]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: don't stop TX on suspend
authorAlex Elder <elder@linaro.org>
Thu, 12 Aug 2021 19:50:34 +0000 (14:50 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Aug 2021 13:13:38 +0000 (14:13 +0100)
commit9bdc5365446ae4a3134d6f03f0b8ee721b838f7a
treeba67fe08dee799959f91a8f98d344811f6a5b6be
parent377de64cdaf24aff4a8d9fae828a4cfbcd6e748a
net: ipa: don't stop TX on suspend

Currently we stop the modem netdev transmit queue when suspending
the hardware.  For system suspend this ensured we'd never attempt
to transmit while attempting to suspend the modem endpoints.

For runtime suspend, the IPA hardware might get suspended while the
system is operating.  In that case we want an attempt to transmit a
packet to cause the hardware to resume if necessary.  But if we
disable the queue this cannot happen.

So stop disabling the queue on suspend.  In case we end up disabling
it in ipa_start_xmit() (see the previous commit), we still arrange
to start the TX queue on resume.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/ipa_modem.c