mlxsw: spectrum: Use PLLP to get front panel number and split number
authorJiri Pirko <jiri@nvidia.com>
Tue, 14 Sep 2021 06:13:27 +0000 (09:13 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Sep 2021 11:44:16 +0000 (12:44 +0100)
commit1dbfc9d76551f4683a887900c2185c29690acab3
tree9af972d01239ce34be082fb5dd54030e82836c65
parented403777f653b9b184cbdb380ea938adf8f31328
mlxsw: spectrum: Use PLLP to get front panel number and split number

Instead of relying on the values coming from the PMLP register, use PLLP
to get the information about port front panel number and split number.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c