diff options
author | Shalom Toledo <shalomt@mellanox.com> | 2019-11-12 09:48:30 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-12 21:54:02 +0300 |
commit | 9032b9e8f2107c6d30327492e4e4b32f92956a8f (patch) | |
tree | d95184c450b06a3ba16438472af7375cb45f4327 /drivers | |
parent | 5d716ab45ad5e02461cb3b33062573d7cf43596a (diff) | |
download | linux-9032b9e8f2107c6d30327492e4e4b32f92956a8f.tar.xz |
mlxsw: spectrum: Enable EMAD string TLV
Make sure to enable EMAD string TLV only after using the required firmware
version.
Signed-off-by: Shalom Toledo <shalomt@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c index 471478eb1d86..556dca328bb5 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c @@ -4894,6 +4894,8 @@ static int mlxsw_sp_init(struct mlxsw_core *mlxsw_core, if (err) return err; + mlxsw_core_emad_string_tlv_enable(mlxsw_core); + err = mlxsw_sp_base_mac_get(mlxsw_sp); if (err) { dev_err(mlxsw_sp->bus_info->dev, "Failed to get base mac\n"); |