]> 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)
commit9aed8d20c8da2070ec4a9d5496f5f5294b5e051c
treed444766113d7d31ff569dc5b1d108c38643481de
parent3a84c28854e1df2b2b4ea960af43c9c4b5ebd9fb
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