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)
commit30c2515b89f1a6361170961e72bebd375f611b9b
tree5a54641e544364e3bee28389e92c669211f5d923
parent1f52247ef840db6ddd727fb1bd1c38b7153120c3
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