]> 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)
commit3fe0d80638ab6a215b4cb3b1b2b0ebb7dd2ceae8
tree60ad5626a91b9440af58bee1b3fa982b69ad325f
parent6beeeb6183e60ef43d3adba1c3162cb701bf9efe
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: 6251d77ee13b ("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