]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: core: Add API for QSFP module temperature thresholds reading
authorVadim Pasternak <vadimp@mellanox.com>
Wed, 13 Feb 2019 11:28:47 +0000 (11:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2019 06:33:02 +0000 (22:33 -0800)
commit84dfae097a97e28200ab0ff2160ea0ce6804bf4c
treef0c1657201407feb7044f9745dd4e6a731e21ed7
parent64c06deca0cd04bb25e4b49a58158f3590ffa119
mlxsw: core: Add API for QSFP module temperature thresholds reading

Add new API to read QSFP module's temperature thresholds - warning and
critical.

New internal API reads the temperature thresholds from the modules,
which are equipped with the thermal sensor. These thresholds will be
exposed via hwmon subsystem.

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/Makefile
drivers/net/ethernet/mellanox/mlxsw/core_env.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlxsw/core_env.h [new file with mode: 0644]