Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp155282pxv; Wed, 30 Jun 2021 02:21:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxL5KuDJB9OFRkmKsgt0E1YghtFOkxLl5uELpbgq0SxAhlyW3AN2YAEmPPUX1SxmgcD5ihb X-Received: by 2002:a17:906:d8cf:: with SMTP id re15mr9241639ejb.410.1625044863802; Wed, 30 Jun 2021 02:21:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625044863; cv=none; d=google.com; s=arc-20160816; b=efdZX/qNuFYP6zl+yCIaiU45SgNzoCwPH1VF+usagh9gmtqn8xnZrGgmkX/5tEfCVY TwWrnQC/LalIa7soOcqtGeaxFxvdEHtPRLyyfEqIhQJrbDpY8hXAbLlEWCLBU+8Snjrs nbHStimOHEWv443M7IhmSUfmOcwzD885DlGQ0DbM4o6b0wPOl/pF5wfvHG2sVEXWi7xD DQaO/A7Iz5J6YTJFLfLNXAedyKFNnZBC2wo4QCB0KQYgVvsgUWkFvQyqI7DI1efCIb6E /8BSbaYYOlYDbRM69/I3pJ0werJC72uMLVzMoou0j//u+vk1eshcXjCohaTY0P00HrlN vd8g== 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=TXH7poplF1QZAsFNvdL8xDvP9n6fReeRVuaBbq2471w=; b=Nu3Ug57J+JZxr6IC9lmEKGzz2yobsSH5ot89A4rk09G3NEq/au++xp4Km7GjVW2oNe a9HzTwL6DZlKu13QEPGbfAljpqtswD7qT8t7tzKgoRDH69uuTfIp7gYJpr+jimdcSI5y 6f1sWu51kfEXsZXrnPxPEYBn15sZvsFRaWoaNnHhB0kHuZiGpb4tdMfaRu5+TMJl4nmy VIM+iutySpFWle057HSV8d56kRI+GOK7WqC/qoeBvSTxiNefZ/dmHsBnhoJZwyUTam/u 5SfNKK9Axp5bkXYC6PpW06aEVvXFA9jM+FOgsn5VHwIbfgel+hP50Xy7NagPdreoHp2/ sBww== 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 e10si12063606edz.455.2021.06.30.02.20.40; Wed, 30 Jun 2021 02:21:03 -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 S233964AbhF3JVR (ORCPT + 99 others); Wed, 30 Jun 2021 05:21:17 -0400 Received: from mga05.intel.com ([192.55.52.43]:37800 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233849AbhF3JVN (ORCPT ); Wed, 30 Jun 2021 05:21:13 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10030"; a="293954425" X-IronPort-AV: E=Sophos;i="5.83,311,1616482800"; d="scan'208";a="293954425" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2021 02:18:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,311,1616482800"; d="scan'208";a="489530422" Received: from mismail5-ilbpg0.png.intel.com ([10.88.229.82]) by orsmga001.jf.intel.com with ESMTP; 30 Jun 2021 02:18:36 -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, stable@vger.kernel.org, mohammad.athari.ismail@intel.com Subject: [PATCH net] net: stmmac: Terminate FPE workqueue in suspend Date: Wed, 30 Jun 2021 17:17:54 +0800 Message-Id: <20210630091754.23423-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 --- 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