net/mlx5: Initialize clock->ptp_info inside mlx5_init_timer_clock
authorRahul Rameshbabu <rrameshbabu@nvidia.com>
Mon, 17 Jul 2023 19:10:42 +0000 (12:10 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 15 Nov 2023 19:34:30 +0000 (11:34 -0800)
commit4395d9de4e21376dcd5592fdf9627beaa8609055
tree35649a99afe9080764558ff1ee34c253a354ebe3
parent330af90c4b43bdcc2a49b221bdd996afd3a0abb6
net/mlx5: Initialize clock->ptp_info inside mlx5_init_timer_clock

Configure the PHC inside mlx5_init_timer_clock for calling mlx5_ptp_settime
later in the function. Would previously use mlx5_ptp_clock_info instance to
invoke mlx5_ptp_settime to set the NIC real-time clock to be synchronized
with the host system clock.

Signed-off-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c