mlxsw: core: Add support for temperature thresholds reading for QSFP-DD transceivers
authorVadim Pasternak <vadimp@mellanox.com>
Tue, 28 Jul 2020 10:20:16 +0000 (13:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jul 2020 20:28:02 +0000 (13:28 -0700)
commitf152b41ba6cf43a3a5a87c7b45e6a2722a6195dc
tree6dd6fdef0df63cad7fb76f8eb1e6ceb9bfacbc94
parent6af496adcbb8d4656b90a85401eeceb88d520c0d
mlxsw: core: Add support for temperature thresholds reading for QSFP-DD transceivers

Allow QSFP-DD transceivers temperature thresholds reading for hardware
monitoring and thermal control.

For this type, the thresholds are located in page 02h according to the
"Module and Lane Thresholds" description from Common Management
Interface Specification.

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>
drivers/net/ethernet/mellanox/mlxsw/core_env.c
drivers/net/ethernet/mellanox/mlxsw/reg.h