From 7a401068d2917cad0aa75115d67ef02b3b558945 Mon Sep 17 00:00:00 2001 From: Jagadeesh Ponduru Date: Wed, 18 Jan 2023 12:38:53 +0530 Subject: [PATCH] msm: ipa3: use netif device detach instead of stop queue Adding change to use netif_device_detach instead of netif _stop_queue to avoid the network stack to trigger a watch dog timeout if queue is stopped. Change-Id: Ie24dd0b1451d3dc201ebe5d773c7cb382984e2cc Signed-off-by: Jagadeesh Ponduru --- drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c b/drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c index a50f4fd610..279cc9bb00 100644 --- a/drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c +++ b/drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c @@ -1,6 +1,8 @@ // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2014-2021, The Linux Foundation. All rights reserved. + * + * Copyright (c)2023 Qualcomm Innovation Center, Inc. All rights reserved. */ /* @@ -3973,7 +3975,7 @@ static int ipa3_lcl_mdm_ssr_notifier_cb(struct notifier_block *this, atomic_set(&rmnet_ipa3_ctx->is_ssr, 1); ipa3_q6_pre_shutdown_cleanup(); if (IPA_NETDEV()) - netif_stop_queue(IPA_NETDEV()); + netif_device_detach(IPA_NETDEV()); ipa3_qmi_stop_workqueues(); ipa3_wan_ioctl_stop_qmi_messages(); ipa_stop_polling_stats();