Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp177017pxv; Wed, 30 Jun 2021 03:02:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw90IWBGAc18Ml06SoLzaMXkI+8f+SnSlC05y9Hekp8nuULmPxoRnchukRI6QCiZTmPu4AE X-Received: by 2002:a02:b786:: with SMTP id f6mr8212471jam.65.1625047362610; Wed, 30 Jun 2021 03:02:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625047362; cv=none; d=google.com; s=arc-20160816; b=y4s6z6ANSIelx8jGslyGsecnSTSvk4Lu4sciexTKGf7wo57ApYcvq4r7+tF68A51lv ckUdgdJMnj7YNwTydmbrYLmAkKWqvhKrJC0t9xxa3Ulbmfil4uHPwgj40494IKDoVWui cvhxCmiXlkajEbmAiPZmiRsMWhvARUWCwbVtbQ5/dk6ZwYolLvPNttLzkGYxsXeXVqnP CrxR90SwyU8oZDwM8Y2HxpdTqhaq5wf9OvsXr+8fA5TqZRvl6fbROfH3Ehx8W01eTV7c K1PsQBSk/DJ6AWIbkZcuuULWdVGh/ce4V8gUMJwA2i2+AwHgSu5Hfke45Q9mq1nIgFjN r4uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=3j5hWTvfeyoiq0YOX2ikDLLqMemMAXajQrBYyrEojqw=; b=ao/8PBs7SKyb7qIDw5R1zxpbYutBOoxsfppKAMoCCdDnTYK0ACsX5bOykOrHclL8NR myugKTkJLASCjrpVWULPyVv1WlnUkRYk2hSo6OADyd1MqxrN8sIeTUGlVst7PY9Mi5Vw jRjlXMpninlH5z1UCQklcE8A3UuF2JR1v6eIcCvG/CbMEoplK3Emgn7M9KmFKxWZdhGR f1J+5F28kZ/bhEAkr2+xcD7hzVhLFGHp09p+Pk950nYKBVgEoNy2wEqs+kj8MlNM/KPI EhZ+Vblqd44BTdb1Dl00w+2Brx2GnlJ1tygxnF0IwsLI1JOFrmQq3hdzMKs1JiVHDjcQ c5IA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si19553247iow.49.2021.06.30.03.02.25; Wed, 30 Jun 2021 03:02:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234094AbhF3KCz (ORCPT + 99 others); Wed, 30 Jun 2021 06:02:55 -0400 Received: from mga11.intel.com ([192.55.52.93]:60216 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233943AbhF3KCw (ORCPT ); Wed, 30 Jun 2021 06:02:52 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10030"; a="205313909" X-IronPort-AV: E=Sophos;i="5.83,311,1616482800"; d="scan'208";a="205313909" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2021 03:00:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,311,1616482800"; d="scan'208";a="408505872" Received: from mismail5-ilbpg0.png.intel.com ([10.88.229.82]) by orsmga006.jf.intel.com with ESMTP; 30 Jun 2021 03:00:18 -0700 From: mohammad.athari.ismail@intel.com To: Alexandre Torgue , Jose Abreu , "David S . Miller" , Jakub Kicinski , Giuseppe Cavallaro , Maxime Coquelin Cc: Ong Boon Leong , Voon Weifeng , Tan Tee Min , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, mohammad.athari.ismail@intel.com Subject: [PATCH v2 net] net: stmmac: Terminate FPE workqueue in suspend Date: Wed, 30 Jun 2021 17:59:35 +0800 Message-Id: <20210630095935.29097-1-mohammad.athari.ismail@intel.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mohammad Athari Bin Ismail Add stmmac_fpe_stop_wq() in stmmac_suspend() to terminate FPE workqueue during suspend. So, in suspend mode, there will be no FPE workqueue available. Without this fix, new additional FPE workqueue will be created in every suspend->resume cycle. Fixes: 5a5586112b92 ("net: stmmac: support FPE link partner hand-shaking procedure") Signed-off-by: Mohammad Athari Bin Ismail --- v2 changelog: - Removed stable@vger.kernel.org from email cc list. --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index c87202cbd3d6..796ad594543d 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -7170,6 +7170,7 @@ int stmmac_suspend(struct device *dev) priv->plat->rx_queues_to_use, false); stmmac_fpe_handshake(priv, false); + stmmac_fpe_stop_wq(priv); } priv->speed = SPEED_UNKNOWN; -- 2.17.1