rmnet_ipa: Fix netdev watchdog triggering on suspend

Sometimes remnet_ipa fails to suspend with the following trace:

NETDEV WATCHDOG: rmnet_ipa0 (): transmit queue 0 timed out

Signed-off-by: celtare21 <celtare21@gmail.com>
This commit is contained in:
celtare21 2022-06-06 17:53:11 +01:00 committed by spakkkk
parent c203bbded3
commit a6700dbb48

View File

@ -2652,6 +2652,7 @@ static int rmnet_ipa_ap_suspend(struct device *dev)
/* Make sure that there is no Tx operation ongoing */
netif_stop_queue(netdev);
netif_device_detach(netdev);
spin_unlock_irqrestore(&wwan_ptr->lock, flags);
IPAWANDBG("De-activating the PM resource.\n");
@ -2681,6 +2682,7 @@ static int rmnet_ipa_ap_resume(struct device *dev)
atomic_set(&rmnet_ipa3_ctx->ap_suspend, 0);
if (netdev)
netif_wake_queue(netdev);
netif_device_attach(netdev);
IPAWANDBG("Exit\n");
return 0;