octeontx2-af: return correct ptp timestamp for CN10K silicon
authorNaveen Mamindlapalli <naveenm@marvell.com>
Sat, 10 Sep 2022 07:54:13 +0000 (13:24 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Sep 2022 19:13:41 +0000 (20:13 +0100)
commita8025e7946a2b18c4ac17b36fde528d2f6262bdd
tree57d08db374a7aa57da15d5f8dbff45107ab2bf30
parent5947b7f794ca5b96fa097d8d73259aaf18878c31
octeontx2-af: return correct ptp timestamp for CN10K silicon

The MIO_PTP_TIMESTAMP format has been changed in CN10K silicon
family. The upper 32-bits represents seconds and lower 32-bits
represents nanoseconds. This patch returns nanosecond timestamp
to NIX PF driver.

Signed-off-by: Naveen Mamindlapalli <naveenm@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/ptp.c