]> asedeno.scripts.mit.edu Git - linux.git/commit
mlxsw: core: Extend hwmon interface with inter-connect temperature attributes
authorVadim Pasternak <vadimp@mellanox.com>
Wed, 29 May 2019 08:47:20 +0000 (11:47 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 May 2019 19:59:46 +0000 (12:59 -0700)
commit2e265a8b6c09407ac719cff5ad13a94bcd1ed911
treecbfdd9d02f2aa0c17aaa757226a3d5a332a4114f
parent7e9561ed0bff5a8a38101bd929b72915b4620345
mlxsw: core: Extend hwmon interface with inter-connect temperature attributes

Add new attributes to hwmon object for exposing inter-connects temperature
input, highest, reset_history temperatures and label. Temperatures are read
from Management Temperature Register.
The number of inter-connect devices is read from Management General
Peripheral Information Register.

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