]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite740520b889f9f6c883ba3640173736e2e01dbbd
tree60ad5626a91b9440af58bee1b3fa982b69ad325f
parente8de8e8534aec7b1b06eb0b9a424075d441aa67e
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: 43407c661b74 ("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