OSDN Git Service

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)
commited56d749c366be269d58b29597392e4a0ae71c0a
tree97eccf8fd25c4fe04d00414f64b9d4cba47b6ab9
parent21083309cab1a66877b410cd61340b5dd7cf4875
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: ee7f12205abc ("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