mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
nvethernet: register ptp MAC with notifier framework
register ptp MAC with notifier framework by default since CONFIG_TEGRA_PTP_NOTIFIER has been removed and is corresponding code is enabled as default. Bug 3895413 Bug 3930304 Change-Id: Ib875079504bfcbfcaf286bb606b4fd581fc12754 Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2837510 Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com> Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
cb04b4d509
commit
c9df39dd07
@@ -1,5 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/* Copyright (c) 2019-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved */
|
||||
/* Copyright (c) 2019-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved */
|
||||
|
||||
#include <linux/version.h>
|
||||
#include "ether_linux.h"
|
||||
@@ -10,7 +10,6 @@
|
||||
*/
|
||||
static DEFINE_RAW_SPINLOCK(ether_ts_lock);
|
||||
|
||||
#ifdef CONFIG_TEGRA_PTP_NOTIFIER
|
||||
/**
|
||||
* @brief Function used to get PTP time
|
||||
* @param[in] data: OSI core private data structure
|
||||
@@ -80,8 +79,6 @@ static inline int ether_get_hw_time(struct net_device *dev,
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Adjust MAC hardware time
|
||||
*
|
||||
@@ -563,10 +560,8 @@ int ether_handle_hwtstamp_ioctl(struct ether_priv_data *pdata,
|
||||
dev_err(pdata->dev, "Failure to enable CONFIG_PTP\n");
|
||||
return -EFAULT;
|
||||
}
|
||||
#ifdef CONFIG_TEGRA_PTP_NOTIFIER
|
||||
/* Register broadcasting MAC timestamp to clients */
|
||||
tegra_register_hwtime_source(ether_get_hw_time, ndev);
|
||||
#endif
|
||||
ether_config_slot_function(pdata, OSI_ENABLE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user