hwmon: (it87) Do not overwrite bit 2..6 of pwm control registers
authorGuenter Roeck <linux@roeck-us.net>
Wed, 8 Feb 2017 22:07:42 +0000 (14:07 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 11 Feb 2017 05:35:08 +0000 (21:35 -0800)
commit4c7b8ca1ae5ed9e27014732c8a918ba11a86cf09
treefa4299c85a4b35bc5700902c071a389d9ab2da32
parentd66777caa57ffade6061782f3a4d4056f0b0c1ac
hwmon: (it87) Do not overwrite bit 2..6 of pwm control registers

In IT8620E, after setting pwm control to manual, it was observed that
pwm values for fan 4..6 have reversed results (writing 0 results in fans
running at full speed, writing 255 results in fans turned off).

With the new PWM control, pwm polarity for pwm control 4..6 is specified
in its pwm control registers. Those registers are overwritten when setting
the pwm mode or the temperature mapping. Do not touch bit 2..6 of pwm
control registers on register writes to fix the problem.

Cc: stable@vger.kernel.org # 4.9+
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/it87.c