]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (max6650) Drop call to thermal_cdev_update
authorGuenter Roeck <linux@roeck-us.net>
Mon, 22 Apr 2019 17:12:32 +0000 (10:12 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 23 Apr 2019 13:30:38 +0000 (06:30 -0700)
commit99e5c05ce716ca646a678e780030eeaae11f7d7b
tree2756cc62062a6287aaf37d720ebd11314ee8737e
parent4929aa6f85b3289f74a0634c722b24126299408e
hwmon: (max6650) Drop call to thermal_cdev_update

The call to thermal_cdev_update() causes any fan connected to the chip
to stop immediately. If the thermal subsystem is not set up to actually
handle the chip as cooling device, the remains stopped until is is
restarted manually with a write to a sysfs attribute.

There is evidence that thermal_cdev_update() should only be called from
thermal governors, not from thermal cooling device drivers. Drop the call.

Cc: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Tested-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/max6650.c