OSDN Git Service

mlxsw: core: Extend thermal core with per inter-connect device thermal zones
authorVadim Pasternak <vadimp@mellanox.com>
Mon, 24 Jun 2019 10:32:01 +0000 (13:32 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jun 2019 15:15:41 +0000 (08:15 -0700)
commitf14f4e621b1b4a33ea4af5ca95a8169a8d2c598c
tree336497d7176e9ca7896eb500be8ea2fcd1e8a715
parentc04b6ea4e6097dbe35f50d4302bbcbab5310df31
mlxsw: core: Extend thermal core with per inter-connect device thermal zones

Add a dedicated thermal zone for each inter-connect device. The
current temperature is obtained from inter-connect temperature sensor
and the default trip points are set to the same values as default ASIC
trip points. These settings could be changed from the user space.
A cooling device (fan) is bound to all inter-connect devices.

Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core_thermal.c