]> 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)
commit78a4d018cf12e018bd430a080b6f4e51c2abf530
tree5a54641e544364e3bee28389e92c669211f5d923
parent94d095f89429401ae9fc63f00cb2e8c11a94d4a2
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