net: ipa: re-enable transmit in PM WQ context
authorAlex Elder <elder@linaro.org>
Thu, 12 Aug 2021 19:50:32 +0000 (14:50 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Aug 2021 13:13:38 +0000 (14:13 +0100)
commita96e73fa1269a1d1b932f465ed0a803d4c153258
tree3b2778b2c41e9dfa86cfa1a4c18d4bbf72017216
parentb9c532c11cab21d23a67c2d80a02a444c9e07ac6
net: ipa: re-enable transmit in PM WQ context

Create a new work structure in the modem private data, and use it to
re-enable the modem network device transmit queue when resuming.

This is needed by the next patch, which stops the TX queue if IPA
power isn't active when a transmit request arrives.  Packets will
start arriving the instant the TX queue is enabled, but resuming
isn't complete until ipa_modem_resume() returns.  This way we're
sure to be resumed before transmits are allowed again.

Cancel it before calling ipa_stop() in ipa_modem_stop() to ensure
the transmit queue restart completes before it gets stopped there.

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