Skip to content
Commit 24a7fffb authored by Nikhil Gupta's avatar Nikhil Gupta Committed by Jakub Kicinski
Browse files

ptp_qoriq: fix latency in ptp_qoriq_adjtime() operation



1588 driver loses about 1us in adjtime operation at PTP slave
This is because adjtime operation uses a slow non-atomic tmr_cnt_read()
followed by tmr_cnt_write() operation.

In the above sequence, since the timer counter operation keeps
incrementing, it leads to latency. The tmr_offset register
(which is added to TMR_CNT_H/L register giving the current time)
must be programmed with the delta nanoseconds.

Signed-off-by: default avatarNikhil Gupta <nikhil.gupta@nxp.com>
Reviewed-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
Tested-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20230119204034.7969-1-nikhil.gupta@nxp.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 5e64f59a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment