summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/cpufreq
diff options
context:
space:
mode:
authorXingjiang Qiao <nanpuyue@gmail.com>2022-12-06 08:53:31 +0300
committerGuenter Roeck <linux@roeck-us.net>2022-12-07 01:45:19 +0300
commit364ffd2537c44cb6914ff5669153f4a86fffad29 (patch)
tree9fe67a3b74a7140a54f125083ecf11778258b2ca /Documentation/devicetree/bindings/cpufreq
parent4d50591ebf60ccf79380fff3a4c23659c61c482f (diff)
downloadlinux-364ffd2537c44cb6914ff5669153f4a86fffad29.tar.xz
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/devicetree/bindings/cpufreq')
0 files changed, 0 insertions, 0 deletions