]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mlxsw: spectrum_ethtool: Add support for two new link modes
authorDanielle Ratson <danieller@nvidia.com>
Wed, 26 Jan 2022 10:30:32 +0000 (12:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Jan 2022 11:15:42 +0000 (11:15 +0000)
commit78cf4b92218bf777b2f04c1d44fe458686cc7504
tree38f272be7b18bd88df915906699c4cc7d8a768d7
parent5eaec6d868054792e42ee9ad0e727ab626772611
mlxsw: spectrum_ethtool: Add support for two new link modes

As part of a process for supporting a new system with RJ45 connectors,
100BaseT and 1000BaseT link modes need to be supported.

Add support for these two link modes by adding the two corresponding
bits in PTYS (Port Type and Speed) register.

Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c