]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit495ca57c4b1f80e485a8d19cd10274e97d43a54d
tree57d08db374a7aa57da15d5f8dbff45107ab2bf30
parentc0f759b8485fc6cce80d8b2afeb162fb6e09a95a
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