From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 92C3345845; Thu, 22 Aug 2024 12:51:27 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 66D7842ED0; Thu, 22 Aug 2024 12:51:02 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) by mails.dpdk.org (Postfix) with ESMTP id 7170842E9D for ; Thu, 22 Aug 2024 12:50:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724323856; x=1755859856; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=08NuMjbDNyD1vQfmI4rAEI2LU+DPbHQFeLPpAn3gmYw=; b=RIa9eh/APc/eln4uqkGnI0iFGCbVuem/CG1I323JmsRAXGBOaoDcWsu7 SLZbGVkyb/HCW0slMtbBVBTdHbkvL+eng4GgLEOy14P4dkP7/9DE154el yZgaf+STdY1MPX3xuWYSc+DIifm/EzaWi7A3FU59qE68H6vX/UcD2CMg3 +Re4IWGmUCidBIBmuPoURbBsoGzYVMaBws4V59h4hWYSgug4b9jKa1Aeo 4e2RbinPl5MXihKmZETA54iAlTtuA4kwW4I54RtmX2FAR3y1yqr6FHUHo XuE8rrkmJROA1WNQsm45pHMoUKKX87z/hrz6VBJ7/ad/vTggR2qCqLLF0 g==; X-CSE-ConnectionGUID: NrZGonFqT7a0GgvXoaE0tA== X-CSE-MsgGUID: 1D+DE8tRTJO1Jw6CovVNcg== X-IronPort-AV: E=McAfee;i="6700,10204,11171"; a="22542229" X-IronPort-AV: E=Sophos;i="6.10,166,1719903600"; d="scan'208";a="22542229" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Aug 2024 03:50:55 -0700 X-CSE-ConnectionGUID: D9OtTez+SpWrB16x4WaWWw== X-CSE-MsgGUID: yE6d7rLxTYWYnZpUVCYx4g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,166,1719903600"; d="scan'208";a="61559736" Received: from unknown (HELO npf-hyd-clx-03..) ([10.145.170.182]) by fmviesa010.fm.intel.com with ESMTP; 22 Aug 2024 03:50:53 -0700 From: Soumyadeep Hore To: bruce.richardson@intel.com, ian.stokes@intel.com, aman.deep.singh@intel.com Cc: dev@dpdk.org, shaiq.wani@intel.com Subject: [PATCH v1 05/12] net/ice: update PTP init Date: Thu, 22 Aug 2024 09:56:05 +0000 Message-ID: <20240822095612.216214-6-soumyadeep.hore@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240822095612.216214-1-soumyadeep.hore@intel.com> References: <20240822095612.216214-1-soumyadeep.hore@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Add BIt macro to init PHY 1 for GNRD. Signed-off-by: Soumyadeep Hore --- drivers/net/ice/base/ice_ptp_hw.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ice/base/ice_ptp_hw.c b/drivers/net/ice/base/ice_ptp_hw.c index e574ae6d4f..e61810cbdc 100644 --- a/drivers/net/ice/base/ice_ptp_hw.c +++ b/drivers/net/ice/base/ice_ptp_hw.c @@ -2365,9 +2365,10 @@ static void ice_sb_access_ena_eth56g(struct ice_hw *hw, bool enable) u32 regval = rd32(hw, PF_SB_REM_DEV_CTL); if (enable) - regval |= (cgu | eth56g_dev_0 | eth56g_dev_1); + regval |= (BIT(eth56g_dev_1)); else - regval &= ~(cgu | eth56g_dev_0 | eth56g_dev_1); + regval &= ~(BIT(eth56g_dev_1)); + wr32(hw, PF_SB_REM_DEV_CTL, regval); } @@ -5691,6 +5692,7 @@ void ice_ptp_init_phy_model(struct ice_hw *hw) } ice_sb_access_ena_eth56g(hw, true); + for (phy = 0; phy < hw->num_phys; phy++) if (hw->phy_addr[phy]) { int err; -- 2.43.0