diff options
author | Vadim Pasternak <vadimp@mellanox.com> | 2019-05-18 18:58:28 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-25 19:16:15 +0300 |
commit | c89c9af998fef2af4e5b2b35fb723693f17e05ef (patch) | |
tree | e4dbe379bac2230e945406b718cf5939bbcd1441 /drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c | |
parent | 2d08f204328acaf85ac2c6fe5d5d9d4760f12e13 (diff) | |
download | linux-c89c9af998fef2af4e5b2b35fb723693f17e05ef.tar.xz |
mlxsw: core: Prevent QSFP module initialization for old hardware
[ Upstream commit c52ecff7e6439ca8c9b03282e8869a005aa94831 ]
Old Mellanox silicons, like switchx-2, switch-ib do not support reading
QSFP modules temperature through MTMP register. Attempt to access this
register on systems equipped with the this kind of silicon will cause
initialization flow failure.
Test for hardware resource capability is added in order to distinct
between old and new silicon - old silicons do not have such capability.
Fixes: 6a79507cfe94 ("mlxsw: core: Extend thermal module with per QSFP module thermal zones")
Fixes: 5c42eaa07bd0 ("mlxsw: core: Extend hwmon interface with QSFP module temperature attributes")
Reported-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c')
0 files changed, 0 insertions, 0 deletions