mlxsw: core: Push minor/subminor fw version check into helper
authorVadim Pasternak <vadimp@mellanox.com>
Sun, 6 Oct 2019 06:34:51 +0000 (09:34 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 6 Oct 2019 16:31:39 +0000 (18:31 +0200)
commit762effaad63edca1d927bd6c98f21b870ee3f2a5
tree264b2bcc8ae1fdcc2439acc331347efe7421c091
parentc5cb92d59b30229e22c286651640f55621586e84
mlxsw: core: Push minor/subminor fw version check into helper

Add new API for FW "minor" and "subminor" version validation for
sharing it between "spectrum" and "minimal" drivers.
Use it in "spectrum" driver.

Signed-off-by: Vadim Pasternak <vadimp@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>
drivers/net/ethernet/mellanox/mlxsw/core.c
drivers/net/ethernet/mellanox/mlxsw/core.h
drivers/net/ethernet/mellanox/mlxsw/spectrum.c