]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: core: Set thermal zone polling delay argument to real value at init
authorMykola Kostenok <c_mykolak@nvidia.com>
Sun, 6 Jun 2021 08:24:32 +0000 (11:24 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jun 2021 20:11:41 +0000 (13:11 -0700)
commit012127562f5ac08e85735fd78a25dfdded95b061
treecdd6b74c8e4ea59d9eee8c517c993f857e6a0372
parent90e14e6e978552ef887790a909ff1f58e424d3ad
mlxsw: core: Set thermal zone polling delay argument to real value at init

Thermal polling delay argument for modules and gearboxes thermal zones
used to be initialized with zero value, while actual delay was used to
be set by mlxsw_thermal_set_mode() by thermal operation callback
set_mode(). After operations set_mode()/get_mode() have been removed by
cited commits, modules and gearboxes thermal zones always have polling
time set to zero and do not perform temperature monitoring.

Set non-zero "polling_delay" in thermal_zone_device_register() routine,
thus, the relevant thermal zones will perform thermal monitoring.

Cc: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Fixes: b0ec2afdc7cf ("thermal: Simplify or eliminate unnecessary set_mode() methods")
Fixes: f19103e5f70f ("thermal: remove get_mode() operation of drivers")
Signed-off-by: Mykola Kostenok <c_mykolak@nvidia.com>
Acked-by: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core_thermal.c