mlxsw: core: Extend hwmon interface with QSFP module temperature attributes
authorVadim Pasternak <vadimp@mellanox.com>
Wed, 13 Feb 2019 11:28:54 +0000 (11:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2019 06:33:02 +0000 (22:33 -0800)
commit5c42eaa07bd040d965b7a41b9596be5741016d1a
treedef6bb1935670f391743ae7f1f1de708bb3b7c45
parent2c6a33cd334baada7d9c1faeb0623407f37273f0
mlxsw: core: Extend hwmon interface with QSFP module temperature attributes

Add new attributes to hwmon object for exposing QSFP module temperature
input, fault indication, critical and emergency thresholds. Temperature
input and fault indication are read from Management Temperature Bulk
Register. Temperature thresholds are read from Management Cable Info
Access Register.

Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Reviewed-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_hwmon.c