]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit13211fcbc31e47007a9a48a6815bfcb1fdac947b
treedef6bb1935670f391743ae7f1f1de708bb3b7c45
parent13b0291f78397ee8ec9ca24896ebe73948d75121
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