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)
commit3211434dfe7a66fcf55e43961ea524b78336c04c
treee280cc8c6d52b4918c66c16e76e65e56aefd8bd6
parent1f90aedfb496ccccf862c7b7c0889af20c2fc61a
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: 5b4793f81745 ("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