]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: don't suspend/resume modem if not up
authorAlex Elder <elder@linaro.org>
Wed, 4 Aug 2021 15:36:21 +0000 (10:36 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Aug 2021 10:27:04 +0000 (11:27 +0100)
commit6cd3857320582412ed43a1e23aa84ed0d7ace8e8
tree5a54641e544364e3bee28389e92c669211f5d923
parent218191d191b3e3e685fe6fa82f0966fd981827c9
net: ipa: don't suspend/resume modem if not up

The modem network device is set up by ipa_modem_start().  But its
TX queue is not actually started and endpoints enabled until it is
opened.

So avoid stopping the modem network device TX queue and disabling
endpoints on suspend or stop unless the netdev is marked UP.  And
skip attempting to resume unless it is UP.

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