net: dsa: hellcreek: Convert to gettimex64()
authorKurt Kanzenbach <kurt@linutronix.de>
Tue, 26 Mar 2024 11:16:36 +0000 (12:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Mar 2024 10:44:17 +0000 (10:44 +0000)
commit385edf325efaad802e1bc8eeb710e02eb6461d73
tree20f9f64c60856d6331001bd4ce0777e8086f359d
parentaf398bd0cb2151a581027a19bd995f72af2310ac
net: dsa: hellcreek: Convert to gettimex64()

As of commit 916444df305e ("ptp: deprecate gettime64() in favor of
gettimex64()") (new) PTP drivers should rather implement gettimex64().

In addition, this variant provides timestamps from the system clock. The
readings have to be recorded right before and after reading the lowest bits
of the PHC timestamp.

Reported-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/hirschmann/hellcreek_ptp.c