Subject: Re: [patch 24/24] ptp: Switch to ktime_get_snapshot_id() for pre/post timestamps

From: Jakub Kicinski <[email-masked]>
Date: Wed, 27 May 2026 16:56:21 -0700

On Tue, 26 May 2026 19:15:27 +0200 Thomas Gleixner wrote:
> -	if (sts && bp->ts_window_adjust) {
> -		s64 ns = timespec64_to_ns(&sts->post_ts);
> -
> -		sts->post_ts = ns_to_timespec64(ns - bp->ts_window_adjust);
> -	}
> +	if (sts && bp->ts_window_adjust)
> +		sts->post_ts.sys -= bp->ts_window_adjust;

FWIW build says:

drivers/ptp/ptp_ocp.c:1495:8: error: no member named 'post_ts' in 'struct ptp_system_timestamp'
 1495 |                 sts->post_ts.sys -= bp->ts_window_adjust;
      |                 ~~~  ^