ptp: add getcrosststamp() to virtual clocks.
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 2 Feb 2022 09:33:58 +0000 (10:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Feb 2022 14:00:58 +0000 (14:00 +0000)
commit21fad63084c22128169eca1b9d1136eabb8cd290
treef610694aeb1785f0d0c306c99e0c10372531e950
parentf0067ebfc42b0f5bb5472fca9fcd4d4fa87a08c0
ptp: add getcrosststamp() to virtual clocks.

If the physical clock supports cross timestamping (it has the
getcrosststamp() function), provide a wrapper in the virtual clock to
enable cross timestamping.

This adds support for the PTP_SYS_OFFSET_PRECISE ioctl.

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Cc: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_vclock.c