]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5e: Change 1PPS out scheme
authorEugenia Emantayev <eugenia@mellanox.com>
Sun, 28 May 2017 11:06:01 +0000 (14:06 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2017 15:33:58 +0000 (08:33 -0700)
commitb2ded41c2cf38d4c48062c6a9d57403f52b3b539
tree56d00f2b4641aef911d4517b66e8a2a77f1b9c48
parent7657fcff05bf1ae1e79287a11d53708d4edda756
net/mlx5e: Change 1PPS out scheme

[ Upstream commit 4272f9b88db9223216cdf87314f570f6d81295b4 ]

In order to fix the drift in 1PPS out need to adjust the next pulse.
On each 1PPS out falling edge driver gets the event, then the event
handler adjusts the next pulse starting time.

Fixes: ee7f12205abc ('net/mlx5e: Implement 1PPS support')
Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_clock.c