hwmon: (it87) Preserve configuration register bits on init

We were accidentally losing one bit in the configuration register on
device initialization. It was reported to freeze one specific system
right away. Properly preserve all bits we don't explicitly want to
change in order to prevent that.

Reported-by: Stevie Trujillo <stevie.trujillo@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>

authored by Jean Delvare and committed by Jean Delvare 41002f8d 918227bb

+1 -1
+1 -1
drivers/hwmon/it87.c
··· 2341 2342 /* Start monitoring */ 2343 it87_write_value(data, IT87_REG_CONFIG, 2344 - (it87_read_value(data, IT87_REG_CONFIG) & 0x36) 2345 | (update_vbat ? 0x41 : 0x01)); 2346 } 2347
··· 2341 2342 /* Start monitoring */ 2343 it87_write_value(data, IT87_REG_CONFIG, 2344 + (it87_read_value(data, IT87_REG_CONFIG) & 0x3e) 2345 | (update_vbat ? 0x41 : 0x01)); 2346 } 2347