Received: by 2002:a05:7412:b112:b0:f9:3106:f1c0 with SMTP id az18csp90604rdb; Sun, 17 Dec 2023 23:07:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IG4WueNpkCDKEcCHniFyHA1xv6bt6JtoSMRsMwxNPZqAW86COe++LEiIiCX+vaEvcZxPWp4 X-Received: by 2002:aa7:86cf:0:b0:6d5:ee7f:594e with SMTP id h15-20020aa786cf000000b006d5ee7f594emr1690514pfo.22.1702883222687; Sun, 17 Dec 2023 23:07:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702883222; cv=none; d=google.com; s=arc-20160816; b=hWfflELPfa6UPNd+FxIc3SP5SY3RizQiKyLfSdFDswNnVPX1JCMjHZu0udj3cQ65Ig GwvgI3xphSs8Rk+rH+tNFFyTjGvHcat9/uhPmgpImkwO2Mfg9uc6nnVFMZrkCEvuKJag sjtjAY9waA1/jcHiujtG9JK0sJQJXRQn6YmLTm6tKOJk2KLWiRDHD6We8FisQcg/epfb pTfWVTyzWSKBolhGRhSyAC9ktCc+ScSzb+E6IqFKtbQ0QEOmN5YaoJf963IKDn7lyvG+ Je7r70FOzamQhkPqS5eUs2YWyvFnFenPz8PWopwaoR9iU2aMa6z87puGXBo/Cf6kPyZ0 Eakw== 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=wSkzG5L8tuK8c31NPJBGB49Eub/aBHZOyHjz8Pli3Kc=; fh=zSJka53fAw6urfqwBPFLeJUzLWq31FxQMMTEF7Rw6Lk=; b=o0imTO35AnVMSoTXhYTUbUEYEMh6eoRACQrPgfunQ3BoyY2e1jQ7q8YYPonIepgoby W+0+zeLM9C9LpfCJ0ZquYpMVIRXjMtUSsmvMmsIi+XUM2UsHqih5byEwzq0U3z4mnco6 5Q9tDSSZSnKhMulZJ5IjSC/LXH/mLEVa8BqzfLmzYxDdQ7tzwQ/jgAjVsPlfMo2+MDgi Nb/Oy7G371/CxyPK7KRtw3OS7yVxjgIfi6RIdnS0ob2X+OoMXfsrZKyr2HhRL5plxeih qrJn/gKdIf9ZvY1ftWNbP87toQ8MjzeVuDlze1iUAQnQiIwcyts77DFlKHGE9H0H36WT wp7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Pueusg+U; spf=pass (google.com: domain of linux-kernel+bounces-3079-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3079-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bs10-20020a63280a000000b005c62393c133si16736362pgb.795.2023.12.17.23.07.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 23:07:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3079-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Pueusg+U; spf=pass (google.com: domain of linux-kernel+bounces-3079-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3079-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1633DB20BE9 for ; Mon, 18 Dec 2023 07:06:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2CDB79C1; Mon, 18 Dec 2023 07:06:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Pueusg+U" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 31AD479CB; Mon, 18 Dec 2023 07:06:49 +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=1702883211; x=1734419211; h=from:to:cc:subject:date:message-id; bh=RiZsRpMsjJgcAKI9/RPFJRFk2jM24l/0sJABnqjwbyw=; b=Pueusg+U63zpiAN25hVa9I1SZIRZJZhZpwUkaPdy04GoOUujcz1yTerg O8gk35j/jXcOU+iOG5JMyuK36AOwOgZdKk2fTk1ezEDqf1EX9SLQROdJ5 vuqtCpsQi/UuqgZvrQBUO2e7rpAdN/A6kZ74jDcUQV70TmJfqUZfJYyad z1hcD1PTnO3uQbenmuQV3ID+am0PihjMJQISFADyrWCyKuyw7mjlWzh3z uB3OJHphQdiVbqIgp6KWj9yDE6EJerbwaQeFh8jbdx3L/oFQBYqLRpxy2 tmuL8fFkL19fbvJZtqs8otZrBGqv3lIHue+gbo6W/5s9QIXYt4+/f2nI2 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10927"; a="2555118" X-IronPort-AV: E=Sophos;i="6.04,284,1695711600"; d="scan'208";a="2555118" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Dec 2023 23:06:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10927"; a="845843049" X-IronPort-AV: E=Sophos;i="6.04,284,1695711600"; d="scan'208";a="845843049" Received: from ssid-ilbpg3.png.intel.com ([10.88.227.111]) by fmsmga004.fm.intel.com with ESMTP; 17 Dec 2023 23:06:45 -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 1/1] net: stmmac: fix incorrect flag check in timestamp interrupt Date: Mon, 18 Dec 2023 15:06:41 +0800 Message-Id: <1702883201-29632-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. Signed-off-by: Song Yoong Siang Signed-off-by: Lai Peter Jun Ann --- 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