On Wed, May 27 2026 at 16:56, Jakub Kicinski wrote:
On Tue, 26 May 2026 19:15:27 +0200 Thomas Gleixner wrote:
quoted
- 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;
| ~~~ ^
Noticed too and fixed locally already.