Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1833774pxy; Thu, 29 Apr 2021 16:03:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdi2loCtUA7VgXL9UctFWPKl0n5Jlr6DnPLCOnpHzGJiHiBu2pB3iB4nOBx1wsWjisQuxG X-Received: by 2002:aa7:ce8f:: with SMTP id y15mr2365521edv.148.1619737416628; Thu, 29 Apr 2021 16:03:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619737416; cv=none; d=google.com; s=arc-20160816; b=bW712/BmwpmpUDkfxCkqyNvUuwtFqgPNFqe76SeQOTKy8IGyXRg22Dgb9DTRBrcDHr Y29iu78bz9GprnqpLxYzo/nPYahJsk73EFt3tbkM/G2ruethzY9sS15yTGrU48F5FheP NzISff+a+wiG05iAIwfVmPEM0X01802aNhrEc9YiiKiv6ZYn0RHhaxaRNJYPfl5HMPrI cG3t/vaGDbM65RSPM9EiHjn33bI8baCx3Rtqb6vJSagt4yk+0dl6ln56H5RV0qjGqdXZ 3SUriE69Xw7e6hAnM4f0tD0oag/1MRb2Cte2HTkAnMU2Ur65IbbZb53NAbaNQJF3evW3 /8Zw== 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:ironport-sdr :ironport-sdr; bh=gmLPWXQ6E9y8rZ7QmEezfqFkAAi9SdKLHh6FUJpbWSs=; b=tochYqyQcMnnCYQthE3Pqw6cmGevX8lzEOUIhoSNX0H+kbJNuE3bF/WsxmcXKUwWab PkHxOZl+/eUPgw5Tup6EF92bmD2HMD5xcmOQvPHN2pFuBn7enfIBDP2FbGeI3Zt9H7rp 7/Tp9uBumfQG5LhU5sMN6p93LPzKhV6glQmGQjdQoFZYG3Uj0DfkzL/wKpTY+ap0b6Co cpjaOaiCUvLS4FuvxaU8MoCEAIvL+A+Iam+JflWIit4VdjczH689YkORNR142kQsQGwQ 8Os4N4wgK/eJ9F/WKn3mAMrtWXIvacgbDxpoFGqW9miPShJfvyDznz5uCl5Su6qVWTIJ u/zg== 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 k9si1684732eje.142.2021.04.29.16.03.11; Thu, 29 Apr 2021 16:03:36 -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 S229902AbhD2XC2 (ORCPT + 99 others); Thu, 29 Apr 2021 19:02:28 -0400 Received: from mga07.intel.com ([134.134.136.100]:46036 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbhD2XCW (ORCPT ); Thu, 29 Apr 2021 19:02:22 -0400 IronPort-SDR: KsNG1196CrkiVMs+iBtYzsAMngsWG6waT1KKDX6qJtL16v2+trc8F/yMeSnel6bC+hPOleegXV bWeNlK/NQGsA== X-IronPort-AV: E=McAfee;i="6200,9189,9969"; a="261086319" X-IronPort-AV: E=Sophos;i="5.82,260,1613462400"; d="scan'208";a="261086319" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2021 16:01:33 -0700 IronPort-SDR: Fs4pZUxMK/8fcBFX0Jb8mob6R/t0PY5ARNLAXFEgVblwdspSkxuzuukhnkHZ/mdnqNPvd9alWr 2e+5YiWNWk1A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,260,1613462400"; d="scan'208";a="455748252" Received: from mismail5-ilbpg0.png.intel.com ([10.88.229.82]) by FMSMGA003.fm.intel.com with ESMTP; 29 Apr 2021 16:01:29 -0700 From: mohammad.athari.ismail@intel.com To: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Jakub Kicinski , Maxime Coquelin Cc: Ong Boon Leong , Voon Weifeng , Wong Vee Khee , Tan Tee Min , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mohammad.athari.ismail@intel.com Subject: [PATCH net] net: stmmac: cleared __FPE_REMOVING bit in stmmac_fpe_start_wq() Date: Fri, 30 Apr 2021 07:01:04 +0800 Message-Id: <20210429230104.16977-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 An issue found when network interface is down and up again, FPE handshake fails to trigger. This is due to __FPE_REMOVING bit remains being set in stmmac_fpe_stop_wq() but not cleared in stmmac_fpe_start_wq(). This cause FPE workqueue task, stmmac_fpe_lp_task() not able to be executed. To fix this, add clearing __FPE_REMOVING bit in stmmac_fpe_start_wq(). 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 a9a984c57d78..e0b7eebcb512 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -3180,6 +3180,7 @@ static int stmmac_fpe_start_wq(struct stmmac_priv *priv) char *name; clear_bit(__FPE_TASK_SCHED, &priv->fpe_task_state); + clear_bit(__FPE_REMOVING, &priv->fpe_task_state); name = priv->wq_name; sprintf(name, "%s-fpe", priv->dev->name); -- 2.17.1