]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix ethtool indication of connector type
authorAya Levin <ayal@nvidia.com>
Wed, 24 Mar 2021 10:25:06 +0000 (12:25 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 31 Mar 2021 20:12:22 +0000 (13:12 -0700)
commit0e8bdd5406391676fd70c2c836579d782c267158
treee280cc8c6d52b4918c66c16e76e65e56aefd8bd6
parent609b9601b95fc57c5daaf7b9d5c29c1a32933079
net/mlx5e: Fix ethtool indication of connector type

Use connector_type read from PTYS register when it's valid, based on
corresponding capability bit.

Fixes: 917f2cc8e5f2 ("net/mlx5e: Add support for reading connector type from PTYS")
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/en_ethtool.c