]> 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)
commitca0e6eaa2181652f20785c1352b40d57eeda2753
treedef6bb1935670f391743ae7f1f1de708bb3b7c45
parent5c5d6dab5ae4dee32cdaaf1fb6526a59997cd185
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