diff options
author | Xingjiang Qiao <nanpuyue@gmail.com> | 2022-12-06 13:53:31 +0800 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2022-12-06 14:45:19 -0800 |
commit | 364ffd2537c44cb6914ff5669153f4a86fffad29 (patch) | |
tree | 9fe67a3b74a7140a54f125083ecf11778258b2ca /Documentation | |
parent | 4d50591ebf60ccf79380fff3a4c23659c61c482f (diff) | |
download | linux-364ffd2537c44cb6914ff5669153f4a86fffad29.tar.bz2 |
hwmon: (emc2305) fix pwm never being able to set lower
There are fields 'last_hwmon_state' and 'last_thermal_state' in the
structure 'emc2305_cdev_data', which respectively store the cooling state
set by the 'hwmon' and 'thermal' subsystem, and the driver author hopes
that if the state set by 'hwmon' is lower than the value set by 'thermal',
the driver will just save it without actually setting the pwm. Currently,
the 'last_thermal_state' also be updated by 'hwmon', which will cause the
cooling state to never be set to a lower value. This patch fixes that.
Signed-off-by: Xingjiang Qiao <nanpuyue@gmail.com>
Link: https://lore.kernel.org/r/20221206055331.170459-2-nanpuyue@gmail.com
Fixes: 0d8400c5a2ce1 ("hwmon: (emc2305) add support for EMC2301/2/3/5 RPM-based PWM Fan Speed Controller.")
[groeck: renamed emc2305_set_cur_state_shim -> __emc2305_set_cur_state]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions