]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Query PPS pin operational status before registering it
authorEran Ben Elisha <eranbe@mellanox.com>
Mon, 20 Jul 2020 15:34:37 +0000 (18:34 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 28 Jul 2020 19:55:48 +0000 (12:55 -0700)
commitbf7bf71865cec50fd1c3591d84765dff36d46572
tree97eccf8fd25c4fe04d00414f64b9d4cba47b6ab9
parentf80b2263716ba8be6d29532f638d762ffffe6ce2
net/mlx5: Query PPS pin operational status before registering it

In a special configuration, a ConnectX6-Dx pin pps-out might be activated
when driver is loaded. Fix the driver to always read the operational pin
mode when registering it, and advertise it accordingly.

Fixes: 4c61226fbab1 ("net/mlx5e: Implement 1PPS support")
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c