]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Do not enforce same firmware version for multiple ASICs
authorIdo Schimmel <idosch@mellanox.com>
Wed, 15 Jan 2020 11:53:44 +0000 (13:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jan 2020 12:16:30 +0000 (04:16 -0800)
commit2c1a9dc0fb00e0fdf0373863f0ba85871a53208a
tree1196eb8eba6fcd0c79257968b808723d2324ab7f
parent01ea2a392547a99caacd0122c25f7d7638bb4286
mlxsw: spectrum: Do not enforce same firmware version for multiple ASICs

In commit 576149f20d9a ("mlxsw: Enforce firmware version for
Spectrum-2") I added a required firmware version for Spectrum-2, but
missed the fact that mlxsw_sp2_init() is used by both Spectrum-2 and
Spectrum-3. This means that the same firmware version will be used for
both, which is wrong.

Fix this by creating a new init() callback for Spectrum-3.

Fixes: 576149f20d9a ("mlxsw: Enforce firmware version for Spectrum-2")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Tested-by: Shalom Toledo <shalomt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c