From: Ido Schimmel <ido...@mellanox.com> Date: Tue, 20 Nov 2018 06:52:03 +0000
> From: Vadim Pasternak <vad...@mellanox.com> > > Extend cooling device with cooling levels vector to allow more > flexibility of PWM setting. > > Thermal zone algorithm operates with the numerical states for PWM > setting. Each state is the index, defined in range from 0 to 10 and it's > mapped to the relevant duty cycle value, which is written to PWM > controller. With the current definition fan speed is set to 0% for state > 0, 10% for state 1, and so on up to 100% for the maximum state 10. > > Some systems have limitation for the PWM speed minimum. For such systems > PWM setting speed to 0% will just disable the ability to increase speed > anymore and such device will be stall on zero speed. Cooling levels > allow to configure state vector according to the particular system > requirements. For example, if PWM speed is not allowed to be below 30%, > cooling levels could be configured as 30%, 30%, 30%, 30%, 40%, 50% and > so on. > > Signed-off-by: Vadim Pasternak <vad...@mellanox.com> > Reviewed-by: Jiri Pirko <j...@mellanox.com> > Signed-off-by: Ido Schimmel <ido...@mellanox.com> Applied.