Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp99077rdh; Mon, 18 Dec 2023 12:49:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IEw0kJaxBVbev0KOlNx8VwrYH5HnS4ejUIqI8TQm0nTNTVnla4+Wsc8h1SLdV8oroeldX2C X-Received: by 2002:a05:6a21:6da1:b0:18b:8e3d:ed2 with SMTP id wl33-20020a056a216da100b0018b8e3d0ed2mr9896590pzb.31.1702932587846; Mon, 18 Dec 2023 12:49:47 -0800 (PST) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z12-20020a65610c000000b005c6b955fb87si18330416pgu.128.2023.12.18.12.49.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 12:49:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4376-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Gy+opRBx; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-4376-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4376-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 47FFE284E30 for ; Mon, 18 Dec 2023 20:49:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 898C973481; Mon, 18 Dec 2023 20:48:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Gy+opRBx" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (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 123D673478; Mon, 18 Dec 2023 20:48:26 +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=1702932507; x=1734468507; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=W2Hs96AqQiGDi2exTUitBAzOrbDezSDZ9jpmjOMwKAU=; b=Gy+opRBxbA1Ux29ccYHe3KlHUioE+9CU2n++IixImGLS5Wm2DlETnhqs SzAPKbmR7DL0SjbHeWk1fIO+wKSuf+1zM46WKkddcqM+fHcAcf7nuQT4/ bhEb/lZteQmC/I/bABks66uVpQVKCV79wY6IQQ4fspQWbuBTZOumHg4eM LBt253a6evY+x22sFprG05rdKVRpTLGMyrSvdJBwxzZ3isuedOgxbzRWe 2dEL2zNIgJT0EViUByIrlTXJ+rsqp64gPgG8tvZhsb+ROrwt6I/wALMVK uMbTPblsig3Uoy3xAEQ+b5SJwcb7uUsN81LGuNkBfgVc2fskWZofajy92 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10928"; a="2774767" X-IronPort-AV: E=Sophos;i="6.04,286,1695711600"; d="scan'208";a="2774767" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2023 12:48:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10928"; a="1107088611" X-IronPort-AV: E=Sophos;i="6.04,286,1695711600"; d="scan'208";a="1107088611" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga005.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 18 Dec 2023 12:48:25 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 18 Dec 2023 12:48:25 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Mon, 18 Dec 2023 12:48:25 -0800 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.41) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 18 Dec 2023 12:48:24 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oPS1kHNTPLCW57Vxt9Ccfc5j8270z+wWPKOAKZPP4r5sC0yEPRLj/XfYPJqwjY+cwX+PKFx+56LmaZB91hiALqhvJbzmzjCGAoejTXpKQtNoCsrJEqVJXe2zLpd8kxMQyGw5bv6LkhaAnTHVRoImiwL9kSwSI0AGpbQaubMqib/tGKnY6ofmKxHFjN3WTEKq4Z9QOwCzguly7vxo2eFLE1QP7GVmgNAZFrpgXvWbW1w4j+Ow1v14vnPZQlMkgmm0xBf9pzdnKEI3Q2GO9hwA28PMoQN+f8eXXij0JOPp2pAmEqQXmWRqpuSPliS2rDL01k5UiI+cJ7HryhqqPljxnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BasrHyiLqQ00kDQPrUV/fst0YIPII3j/7mDUPH0MDQI=; b=iyknWckRiGt063XygDreEHkKicK+l0oMMwamWNAyYcoYziIFTyCy6VINJMLdOcsQek9JfCxvhl49dLzhJ18X8wjvXUShK2SdtgGxKlvpiqtM2pyHYg3pi737stcNrILW0edn7sIUXX/RKJHbnmxoE33eii+GE5aQ2orVIgH/b10HDkbKY0utfE/QCX6Y9W0LZJST7bV/Kh8j58LaBNklih4RhfInoxSz+l6Axg3nY07fnm6tYgeq1qhgMnyFGaHv+UGVLEZxBqJgQTB2JTyGF7Azhq1g6BWSkBW7AZLYCga3alRu3qf2jmo9y+GT4f0dxs3g5okekWb3ZjELKj3AlQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from CO1PR11MB5089.namprd11.prod.outlook.com (2603:10b6:303:9b::16) by SJ0PR11MB5677.namprd11.prod.outlook.com (2603:10b6:a03:37e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.38; Mon, 18 Dec 2023 20:48:22 +0000 Received: from CO1PR11MB5089.namprd11.prod.outlook.com ([fe80::dbee:4787:6eeb:57f5]) by CO1PR11MB5089.namprd11.prod.outlook.com ([fe80::dbee:4787:6eeb:57f5%4]) with mapi id 15.20.7091.034; Mon, 18 Dec 2023 20:48:22 +0000 Message-ID: <159702bf-3bc8-482e-b4f5-65799d330d7f@intel.com> Date: Mon, 18 Dec 2023 12:48:20 -0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net v2 1/1] net: stmmac: fix incorrect flag check in timestamp interrupt Content-Language: en-US To: Lai Peter Jun Ann , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , "Jakub Kicinski" , Paolo Abeni , Maxime Coquelin CC: , , , , "Song Yoong Siang" References: <1702885892-30369-1-git-send-email-jun.ann.lai@intel.com> From: Jacob Keller In-Reply-To: <1702885892-30369-1-git-send-email-jun.ann.lai@intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MW4PR03CA0320.namprd03.prod.outlook.com (2603:10b6:303:dd::25) To CO1PR11MB5089.namprd11.prod.outlook.com (2603:10b6:303:9b::16) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR11MB5089:EE_|SJ0PR11MB5677:EE_ X-MS-Office365-Filtering-Correlation-Id: 9f1f1182-8f48-4447-b84d-08dc000aac75 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: O3m95ZCmdt59Fa7I9CA6YwccbcM6hC6v+pbOsjThwGQ7G57NSkM5MD+Lt5Sk7qeMCn6iH7xzql/nz03alEpq5OXllEd+YqqNsPBK65PXDOpxi3K9nOFf3Ui0cGlj8+1lh+IakhhW1VWfmt35cW/ulJ7dVAQkRLAkEU3/HaU/G53ne0CBWqvT1PFhn9pKTUeSF1NsoFREq2zqFRVrWM7/TtRtHEdhHJCui+FZmfH5IiXeTJ5GW7a710g1PoGyUGTuCxvvDHxC7HESZNbn+GjgRxqGxXTCbh5C0wZrAolIklX6E/xVObEUdk7V72kzRoM4qQN54gVrnr46u9ZcJo3F0KgmiIR72+lauzG9VnmO203hcUE71sAEUdytrW9RBipXyyS3c1f97ffzIrqsJ8c4HsrbnzzJCdyObE5j2idBSokyXV0l5BZxqbHqMshCegTticgH1DS4N88jjTASdqEJwWoQu4oDu/ktu9kUJO4FnL9+UMQVgghMvTyKS0iqnwr8+8Tb8UCpYvtPp3A/6uY8x4dYJtWt2nLLoRSJ0MPg0u7cONw07xqrbwuzCo+tEI/vDv6vpFDFUXXWSsbF1ybOWqFTNxAISDTSVZEK7PiMM8QoeVezthYC2LXuJnJBn0ahfSurgUar9dnGHrGqrrZHpQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB5089.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(136003)(39860400002)(366004)(346002)(376002)(230922051799003)(1800799012)(451199024)(64100799003)(186009)(26005)(83380400001)(107886003)(6506007)(2616005)(53546011)(6512007)(5660300002)(4326008)(41300700001)(7416002)(316002)(110136005)(2906002)(478600001)(6486002)(8676002)(8936002)(66556008)(66476007)(66946007)(86362001)(31696002)(36756003)(82960400001)(38100700002)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QkxHbWdNeGdHNndsOVhOMjlNZXpsa0hLZ09lTU5xdDhLSmROMisxZU5GNDZL?= =?utf-8?B?Q0JqdlJ3V0lJVkt3ZllSVE5ZUWdkSWJ0TmpFNU9KN1RTcnFadGhLRFVwalQ2?= =?utf-8?B?bHZWT3pUb0VwS3k0TUx6TzJmNHJiWVY5L0RUdVhPQTVIK0REYlV4QzM5WWFa?= =?utf-8?B?QWpVdXJRQ1FLNTV6dGtJREpMMTdCd3gvcjdmbnpYYy9vMFphVlpxa3JoZ0hC?= =?utf-8?B?NHJ6dCs0S0lQb05UL3JRZlpKdThMNENIMDl5QVVoUmZPZFN0d0FiakdrYVBm?= =?utf-8?B?K0ZVYjk3MWxxb3Z0VVJydmdPclo4c01WL01mVHE5eGdxSElweDF5cm52K003?= =?utf-8?B?eUY3UmVL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EZTdlhBa2Fu?= =?utf-8?B?VEE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 9f1f1182-8f48-4447-b84d-08dc000aac75 X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB5089.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2023 20:48:22.4013 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: K3PVOsAtSLyWv+3/W2SQCkA/pqKU0XRVtHHW3BlNkK9ZrzMB+lc6iJd/P5Eq0V+trzyuxl7H9r6Y0YFNE0038xd+hQ5ovKXiVgxJL2wuL4w= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB5677 X-OriginatorOrg: intel.com On 12/17/2023 11:51 PM, Lai Peter Jun Ann wrote: > The driver should continue get the timestamp if STMMAC_FLAG_EXT_SNAPSHOT_EN > flag is set. > Reviewed-by: Jacob Keller > 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) >>