From patchwork Tue Aug 8 04:23:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Neftin X-Patchwork-Id: 1818510 X-Patchwork-Delegate: anthony.l.nguyen@intel.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256 header.s=default header.b=RFqiKHzY; dkim-atps=neutral Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RKg7B69snz1yYl for ; Tue, 8 Aug 2023 14:24:05 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 9E7C681D7D; Tue, 8 Aug 2023 04:24:02 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 9E7C681D7D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1691468642; bh=kVQYVxG8SX60EV5BxCKMvSGxUX7zF2xV+MmzoskgopU=; h=From:To:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=RFqiKHzYzNEfsmuazkvM5PfWHvAYYyLek5kgn222rwnEQcitju9lhY8jteIKCkwH0 6K3G0wa9eMeuJfU/NfhG4wwBYlxx1k6rfmsmIf+DDaJrutuLKdXU6NQqa2PABR/7u9 q+12Qj+PoxYjrgDJBVKeG7knIylSH4SXVyseDztvbGRY/xkeT49FEqqvt30ky+Hfg3 HX8FRLwyHfD4t9dfJzfq1NKQCBqGehyMmnjjaqvhBzrVK8EVscpme86saS7j1mia3/ O7j/HXrr8mxeszBkt7X/ERwKIalCFvXiwYpKIAGNq6jPRmdwigOWl8b8fmGBIjoRng M/lgIAasYi/vw== X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aBFTS6IDo3hb; Tue, 8 Aug 2023 04:24:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 970D9814B3; Tue, 8 Aug 2023 04:24:01 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 970D9814B3 X-Original-To: intel-wired-lan@lists.osuosl.org Delivered-To: intel-wired-lan@lists.osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 3D39A1BF3AA for ; Tue, 8 Aug 2023 04:24:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 18F57813D5 for ; Tue, 8 Aug 2023 04:24:00 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 18F57813D5 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xCMpbW17ZcLd for ; Tue, 8 Aug 2023 04:23:58 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by smtp1.osuosl.org (Postfix) with ESMTPS id 6B40E813A2 for ; Tue, 8 Aug 2023 04:23:58 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 6B40E813A2 X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="355654377" X-IronPort-AV: E=Sophos;i="6.01,263,1684825200"; d="scan'208";a="355654377" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Aug 2023 21:23:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="766226927" X-IronPort-AV: E=Sophos;i="6.01,263,1684825200"; d="scan'208";a="766226927" Received: from ccdlinuxdev11.iil.intel.com ([143.185.162.129]) by orsmga001.jf.intel.com with ESMTP; 07 Aug 2023 21:23:56 -0700 From: Sasha Neftin To: intel-wired-lan@lists.osuosl.org Date: Tue, 8 Aug 2023 07:23:52 +0300 Message-Id: <20230808042352.2930822-1-sasha.neftin@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691468638; x=1723004638; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=743XItrDA6DamgtL0kPNgnH3LXlqa+z7wckvbxJvOL0=; b=gu7vRQAPAY8qET5BTXWQcCGnLpYU+bYg5/fvf1ZhDg9wQxQQaaGpJ4x8 jSbEDs8ckWib6wjwvH8pwfsNP3woK9VFVOWE8PLXQOCUUg4ruHgCLKRWl CLOBSbka8jX9S3xgenolvgDmDo2V403MBwo5PTbEBsLMHTlAF/Cdk0QrN A8QSLCLk3DLUi1ygHartuW/LyXDdX685b9JavRAKl7RIDkMrotx35MxvY 7BMwIojA9DX9aT+RiOxMqi0zymqQi+SRPU3dAbPOIjAg/iY6cYkE62Izo 96NrmV3lYeBfSWd96oAl9hcQoQ7J147Pln96vVRLydV0RgD8qGgac4avA g==; X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=gu7vRQAP Subject: [Intel-wired-lan] [PATCH iwl-net v2 1/1] igc: Fix the typo in the PTM Control macro X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" The IGC_PTM_CTRL_SHRT_CYC defines the time between two consecutive PTM requests. The bit resolution of this field is six bits. That bit five was missing in the mask. This patch comes to correct the typo in the IGC_PTM_CTRL_SHRT_CYC macro. Fixes: a90ec8483732 ("igc: Add support for PTP getcrosststamp()") Signed-off-by: Sasha Neftin Tested-by: Naama Meir --- v1->v2: Fixed commit message --- drivers/net/ethernet/intel/igc/igc_defines.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/igc/igc_defines.h b/drivers/net/ethernet/intel/igc/igc_defines.h index 44a507029946..2f780cc90883 100644 --- a/drivers/net/ethernet/intel/igc/igc_defines.h +++ b/drivers/net/ethernet/intel/igc/igc_defines.h @@ -546,7 +546,7 @@ #define IGC_PTM_CTRL_START_NOW BIT(29) /* Start PTM Now */ #define IGC_PTM_CTRL_EN BIT(30) /* Enable PTM */ #define IGC_PTM_CTRL_TRIG BIT(31) /* PTM Cycle trigger */ -#define IGC_PTM_CTRL_SHRT_CYC(usec) (((usec) & 0x2f) << 2) +#define IGC_PTM_CTRL_SHRT_CYC(usec) (((usec) & 0x3f) << 2) #define IGC_PTM_CTRL_PTM_TO(usec) (((usec) & 0xff) << 8) #define IGC_PTM_SHORT_CYC_DEFAULT 10 /* Default Short/interrupted cycle interval */