• Alex Elder's avatar
    net: ipa: re-enable transmit in PM WQ context · a96e73fa
    Alex Elder authored
    
    
    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: default avatarAlex Elder <elder@linaro.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    a96e73fa
ipa_modem.c 10.3 KB