With new interface timecounter_reset we can update the start time for timecounter. Update mlx5_ptp_settime with this new function.
Signed-off-by: Sagar Arun Kamble <[email protected]> Cc: Richard Cochran <[email protected]> Cc: Saeed Mahameed <[email protected]> Cc: Matan Barak <[email protected]> Cc: Leon Romanovsky <[email protected]> Cc: Eugenia Emantayev <[email protected]> Cc: Eitan Rabin <[email protected]> Cc: Feras Daoud <[email protected]> Cc: Tariq Toukan <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] --- drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c b/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c index 071f78a..e490522 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c @@ -122,7 +122,7 @@ static int mlx5_ptp_settime(struct ptp_clock_info *ptp, unsigned long flags; write_lock_irqsave(&clock->lock, flags); - timecounter_init(&clock->tc, ns); + timecounter_reset(&clock->tc, ns); write_unlock_irqrestore(&clock->lock, flags); return 0; -- 1.9.1

