On Fri, May 29, 2026 at 10:00:52PM +0200, Thomas Gleixner wrote: > From: Thomas Gleixner <[email protected]> > > The PTP core indicates in system_device_crosststamp::clock_id the clock ID > for which the system time stamp should be taken. That allows to utilize > hardware timestamps with e.g. AUX clocks. > > Use ktime_get_snapshot_id() and hand the provided clock ID in. > > No functional change. > > Signed-off-by: Thomas Gleixner <[email protected]> > Tested-by: Arthur Kiyanovski <[email protected]> > Reviewed-by: David Woodhouse <[email protected]> > Reviewed-by: Jacob Keller <[email protected]>
Acked-by: Peter Hilber <[email protected]> > --- > drivers/virtio/virtio_rtc_ptp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > --- a/drivers/virtio/virtio_rtc_ptp.c > +++ b/drivers/virtio/virtio_rtc_ptp.c > @@ -139,7 +139,7 @@ static int viortc_ptp_getcrosststamp(str > if (ret) > return ret; > > - ktime_get_snapshot(&history_begin); > + ktime_get_snapshot_id(xtstamp->clock_id, &history_begin); > if (history_begin.cs_id != cs_id) > return -EOPNOTSUPP; > >

