mlxsw: core: Implement thermal zone
authorIvan Vecera <cera@cera.cz>
Tue, 22 Nov 2016 10:24:13 +0000 (11:24 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Nov 2016 15:04:19 +0000 (10:04 -0500)
commita50c1e35650b929500bd89be61c89d95a267ce56
tree31ed2e98fb076db71e812bd915a731fa7643a39f
parent55c63aaa6952c819e772e9c2d4a7602c062f012c
mlxsw: core: Implement thermal zone

Implement thermal zone for mlxsw based HW. It uses temperature sensor
provided by ASIC (the same as mlxsw hwmon interface) to report current
temp to thermal core. The ASIC's PWM is then used to control speed
of system fans registered as cooling devices.

Signed-off-by: Ivan Vecera <cera@cera.cz>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/Kconfig
drivers/net/ethernet/mellanox/mlxsw/Makefile
drivers/net/ethernet/mellanox/mlxsw/core.c
drivers/net/ethernet/mellanox/mlxsw/core.h
drivers/net/ethernet/mellanox/mlxsw/core_thermal.c [new file with mode: 0644]