mlxsw: core: Extend hwmon interface with fan fault attribute
authorVadim Pasternak <vadimp@mellanox.com>
Wed, 13 Feb 2019 11:28:53 +0000 (11:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2019 06:33:02 +0000 (22:33 -0800)
commit2c6a33cd334baada7d9c1faeb0623407f37273f0
treecb42a6e2f019f49534ddd8c1a549478e5b178634
parent2ee1165118140055bc43d22c6311acc60caf0890
mlxsw: core: Extend hwmon interface with fan fault attribute

Add new fan hwmon attribute for exposing fan faults (fault indication is
read from Fan Out of Range Event 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