From b5286ca35545f88da0150b681ac5787a61f5b674 Mon Sep 17 00:00:00 2001 From: Michael Adisumarta Date: Mon, 13 Jul 2020 21:23:44 -0700 Subject: [PATCH] msm: ipa: use detach/attach netif instead of stop/wakeup To make sure detach and attach netif instead of stop and wakeup and also to update transfer timer update. Change-Id: I9d589b7f9f6fe98f778df509d3c16f339dfdeea1 Signed-off-by: Michael Adisumarta --- drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c b/drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c index e63cf493ce02..d8c8d9f91e46 100644 --- a/drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c +++ b/drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c @@ -2753,7 +2753,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"); @@ -2781,8 +2781,10 @@ static int rmnet_ipa_ap_resume(struct device *dev) IPAWANDBG("Enter...\n"); /* Clear the suspend in progress flag. */ atomic_set(&rmnet_ipa3_ctx->ap_suspend, 0); - if (netdev) - netif_wake_queue(netdev); + if (netdev) { + netif_device_attach(netdev); + netif_trans_update(netdev); + } IPAWANDBG("Exit\n"); return 0;