From 84e2727119b7dda3a171fe5d5cf01bb9077e61db Mon Sep 17 00:00:00 2001 From: Rakesh Goyal Date: Fri, 20 Sep 2024 06:32:42 +0000 Subject: [PATCH] nvethernet: support high pps Issue: Ask for support PPS cmd feature for fast TSC-PTP lock Fix: Extended the possible values for more pulse per sec Bug 4585654 Bug 5042311 Change-Id: I8a2066cd39fdbacee3e8543712b449694aad9f6b Signed-off-by: Rakesh Goyal Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3215592 Tested-by: Sheetal Tigadoli Reviewed-by: Sheetal Tigadoli Reviewed-by: Sumeet Gupta GVS: buildbot_gerritrpt --- drivers/net/ethernet/nvidia/nvethernet/ether_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/nvidia/nvethernet/ether_linux.c b/drivers/net/ethernet/nvidia/nvethernet/ether_linux.c index 3a342c9e..49c64427 100644 --- a/drivers/net/ethernet/nvidia/nvethernet/ether_linux.c +++ b/drivers/net/ethernet/nvidia/nvethernet/ether_linux.c @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-only -// SPDX-FileCopyrightText: Copyright (c) 2019-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-FileCopyrightText: Copyright (c) 2019-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include #include @@ -7074,7 +7074,7 @@ static int ether_parse_dt(struct ether_priv_data *pdata) */ ret_val = of_property_read_u32(np, "nvidia,pps_op_ctrl", &osi_core->pps_frq); - if (ret_val < 0 || osi_core->pps_frq > OSI_ENABLE) { + if (ret_val < 0 || osi_core->pps_frq > OSI_MAX_PPS_HZ) { osi_core->pps_frq = OSI_DISABLE; }