Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Fixes: 5d7bd8a ("thermal: Simplify or eliminate unnecessary set_mode() methods") Fixes: 1ee1482 ("thermal: remove get_mode() operation of drivers") Signed-off-by: Mykola Kostenok <[email protected]> Acked-by: Vadim Pasternak <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Signed-off-by: Ido Schimmel <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information