net/mlx5e: Change 1PPS out scheme
authorEugenia Emantayev <eugenia@mellanox.com>
Sun, 28 May 2017 11:06:01 +0000 (14:06 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 27 Jul 2017 13:40:17 +0000 (16:40 +0300)
commit4272f9b88db9223216cdf87314f570f6d81295b4
tree912509390357265f9d69b7c0918053ff0bfffe5e
parent49c5031ca6f0628ef973a11b17e463e088bf859e
net/mlx5e: Change 1PPS out scheme

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>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_clock.c