]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: Avoid generating event after PPS out in Real time mode
authorAya Levin <ayal@nvidia.com>
Thu, 23 Sep 2021 12:30:01 +0000 (15:30 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 30 Sep 2021 21:07:56 +0000 (14:07 -0700)
commit99b9a678b2e474756770900595cb09c94498bfca
treeffcff94997eaf41ae34049d472e1e3a56e5f2fb8
parent64728294703e77827cc31a1b164ca867400067f5
net/mlx5: Avoid generating event after PPS out in Real time mode

When in Real-time mode, HW clock is synced with the PTP daemon. Hence
driver should not re-calibrate the next pulse (via MTPPSE repetitive
events mechanism).

This patch arms repetitive events only in free-running mode.

Fixes: 432119de33d9 ("net/mlx5: Add cyc2time HW translation mode support")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Eran Ben Elisha <eranbe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c