With new interface timecounter_reset we can update the start time for timecounter. Update cpts_ptp_settime with this new function.
Signed-off-by: Sagar Arun Kamble <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Grygorii Strashko <[email protected]> Cc: Bhumika Goyal <[email protected]> Cc: Richard Cochran <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: [email protected] --- drivers/net/ethernet/ti/cpts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ti/cpts.c b/drivers/net/ethernet/ti/cpts.c index e6afc94..41bac4d 100644 --- a/drivers/net/ethernet/ti/cpts.c +++ b/drivers/net/ethernet/ti/cpts.c @@ -268,7 +268,7 @@ static int cpts_ptp_settime(struct ptp_clock_info *ptp, ns = timespec64_to_ns(ts); spin_lock_irqsave(&cpts->lock, flags); - timecounter_init(&cpts->tc, ns); + timecounter_reset(&cpts->tc, ns); spin_unlock_irqrestore(&cpts->lock, flags); return 0; -- 1.9.1
