Received: by 2002:a05:7412:b112:b0:f9:3106:f1c0 with SMTP id az18csp105008rdb; Sun, 17 Dec 2023 23:51:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEHUL4lZCBMYqN2kyJmBm5w0/2BphzODfntDOy3NyPW94a9V+ZzTXYyBo7Zdqv2pSOc8StM X-Received: by 2002:a50:99dd:0:b0:54b:1a4c:8711 with SMTP id n29-20020a5099dd000000b0054b1a4c8711mr7761703edb.2.1702885914840; Sun, 17 Dec 2023 23:51:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702885914; cv=none; d=google.com; s=arc-20160816; b=t7pnX4faUj6jaMVOJtf/FCwaIDujG58UwZGarhZ71ynH99YZ8ZmukFRNsLpsX9RP2Y i/P7SNJ2txm5pCM8X4DiaO6DAM1tunyC7QY5jwl09nTMq0mwxvYVuJlRox3hr7jC7A9p gGayUHgVdTSB/a7yIfL2XCz701jpIT6cJeFy+HO5Kto8kfaF+Sj9vkModHL34TzWWUUJ 75+Mx3wP6NtkVjdJQA4DEjSfN4lD/CHqfXhsVL8ILFUifurssLXKuYHZoqjyqJ7No2xj e66CzqFD/vBX/q+3rWGcUA82KyNa4CdObxkmqsWcO3iAQXVhc4qBElXt8ZqpC1ZEosYE hzIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature; bh=whtYhFhd9pjtZhC+ZfGuUwskQOKdZiSsmIm74WLMHXI=; fh=zSJka53fAw6urfqwBPFLeJUzLWq31FxQMMTEF7Rw6Lk=; b=EVIMbrjsqoPyzZn5Ysc4vWj59Ln7v4Z2fwTGiA40GOZWx+J6Zj/xbamH+PS/oYLjW4 Vcp4fknt/az/lP15vjyJuayCc3tNxypo+MeTQNdsXbpkO1l04cjIEYriu+9a/QzYa120 HiwSyncJq97MEQ0xusaIw6+DFjNoBq4VS4jK3jJhZ8Bi3YHGEUga3wehyCIpweo6qIzv Tt53pQROKg2ogimiKC6lLfBZNmz3mUEnvDo1VHRvgNFIrkxfFtMWhb5UlndoHHBG8Tp6 xfephwTK/AazN7nwgcMa1LfADITe8MDLmvlYtOI4D+Wd2az7+RnE4phEGFEM6KBqm88i KteA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WsTNjODa; spf=pass (google.com: domain of linux-kernel+bounces-3128-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3128-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s18-20020a508d12000000b005533f0fd2aesi856666eds.588.2023.12.17.23.51.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 23:51:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3128-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WsTNjODa; spf=pass (google.com: domain of linux-kernel+bounces-3128-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3128-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8C51B1F2171C for ; Mon, 18 Dec 2023 07:51:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B190D101D3; Mon, 18 Dec 2023 07:51:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="WsTNjODa" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 02E6AF9C6; Mon, 18 Dec 2023 07:51:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702885901; x=1734421901; h=from:to:cc:subject:date:message-id; bh=BdJBRBUvWJhAlj87MALaZbhkeiFmNqv5A5ngqArXaRY=; b=WsTNjODaGmX0mAcgG/EuUt4qMo6cDg0+Y4juvd0lUFPQxTw4GGAznH5O jNDCqFmqK/dtspyUWhZ85wGB+Ox9ccY8ljB6y8q8eQmBfCbryXZHXMXUg c378WxSHymFUFxnBzw25AELh/h9EL3BsopE6xELDg9/rCzNA1X8FzEs2F xTKPk4Og0BPFjlJ0pDLcHtdPFUM+4eFG3GGpQkVoXVmR8J5H0DpTO//wA Xu3hKpbXBRNCt6wdhmg9eU/Y+VyUxGXrq5n55mx1+OD8mldDUTInGIUmu gBWZ43xVAXPGf0zR6pOG9o2z55t49GZxCURi9fCdyRyktI5X9Onz8BQ/G w==; X-IronPort-AV: E=McAfee;i="6600,9927,10927"; a="461921482" X-IronPort-AV: E=Sophos;i="6.04,284,1695711600"; d="scan'208";a="461921482" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Dec 2023 23:51:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10927"; a="778999082" X-IronPort-AV: E=Sophos;i="6.04,284,1695711600"; d="scan'208";a="778999082" Received: from ssid-ilbpg3.png.intel.com ([10.88.227.111]) by fmsmga007.fm.intel.com with ESMTP; 17 Dec 2023 23:51:36 -0800 From: Lai Peter Jun Ann To: Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin Cc: netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Song Yoong Siang , Lai Peter Jun Ann Subject: [PATCH net v2 1/1] net: stmmac: fix incorrect flag check in timestamp interrupt Date: Mon, 18 Dec 2023 15:51:32 +0800 Message-Id: <1702885892-30369-1-git-send-email-jun.ann.lai@intel.com> X-Mailer: git-send-email 1.9.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The driver should continue get the timestamp if STMMAC_FLAG_EXT_SNAPSHOT_EN flag is set. Fixes: aa5513f5d95f ("net: stmmac: replace the ext_snapshot_en field with a flag") Cc: # 6.6 Signed-off-by: Song Yoong Siang Signed-off-by: Lai Peter Jun Ann --- v2 changelog: - Add fix tag and stable@vger.kernel.org in email cc list. --- drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c index 540f6a4..f05bd75 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c @@ -237,7 +237,7 @@ static void timestamp_interrupt(struct stmmac_priv *priv) */ ts_status = readl(priv->ioaddr + GMAC_TIMESTAMP_STATUS); - if (priv->plat->flags & STMMAC_FLAG_EXT_SNAPSHOT_EN) + if (!(priv->plat->flags & STMMAC_FLAG_EXT_SNAPSHOT_EN)) return; num_snapshot = (ts_status & GMAC_TIMESTAMP_ATSNS_MASK) >> -- 1.9.1