Skip to content
Commit 125db03b authored by Naveen Mamindlapalli's avatar Naveen Mamindlapalli Committed by Ruiqiang Hao
Browse files

octeontx2-bphy-netdev: cnf95n: ptp: Fix ptp clock counter read



commit 8a6091456ae9bf655191fb0b5d945f1240587aec from
git@git.assembla.com:cavium/WindRiver.linux.git

The PTP input clock frequency is passed to the driver using an ioctl
OTX2_RFOE_IOCTL_PTP_OFFSET and driver adds ptp-to-bcn offset to ptp
clock time. This patch adds ptp-to-bcn offset to ptp clock in
cc->read() callback. The details of whether to add BCN offset when
ptp is in slave mode is unknown at this point of time.

Change-Id: I2c3dbea8765a0660448f51fe692f2bf78c904190
Signed-off-by: default avatarNaveen Mamindlapalli <naveenm@marvell.com>
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/79971
Reviewed-by: default avatarSunil Kovvuri Goutham <sgoutham@marvell.com>
Tested-by: default avatarSunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: default avatarRuiqiang Hao <Ruiqiang.Hao@windriver.com>
parent e8d7ac03
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment