net/mlx5: Force round second at 1PPS out start time
authorAya Levin <ayal@nvidia.com>
Thu, 23 Sep 2021 13:56:09 +0000 (16:56 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 30 Sep 2021 21:07:55 +0000 (14:07 -0700)
commit64728294703e77827cc31a1b164ca867400067f5
tree60ad5626a91b9440af58bee1b3fa982b69ad325f
parenta586775f83bd729ad60b56352dbe067f4bb0beee
net/mlx5: Force round second at 1PPS out start time

Allow configuration of 1PPS start time only with time-stamp representing
a round second. Prior to this patch driver allowed setting of a
non-round-second which is not supported by the device. Avoid unexpected
behavior by restricting start-time configuration to a round-second.

Fixes: 4272f9b88db9 ("net/mlx5e: Change 1PPS out scheme")
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