]> git.baikalelectronics.ru Git - kernel.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)
commit967eb94d8208623240f6ee11c85025c328c40658
treecbfdd9d02f2aa0c17aaa757226a3d5a332a4114f
parent8c650d34a82498b4b86dd9545f6b2af359fa7b2c
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