]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Upper-bound supported FW version
authorYuval Mintz <yuvalm@mellanox.com>
Thu, 18 Jan 2018 11:55:23 +0000 (12:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Jan 2018 20:45:56 +0000 (15:45 -0500)
commitc162ba29f7ed1d7f98fa646a6ff74f181dd6ef21
treed444766113d7d31ff569dc5b1d108c38643481de
parent569e695094535a0a1264ee8172b0bc9b3516031d
mlxsw: spectrum: Upper-bound supported FW version

During initialization the driver checks whether the flashed FW image
suits its requirements by checking that it's sufficiently new.
However, there's only a weak backward compatibility scheme that is
actually guaranteed by the FW, so driver must also upper bound the
version to prevent compatibility issues between current driver and some
possible future fw.

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