History

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.

Jean Delvare committed 14 years ago

Commit 41002f81 parent 918227b1 file · +1 −1Browse files

Unified · Split

drivers/hwmon/it87.c+1−1
@@ -2341,7 +2341,7 @@ static void __devinit it87_init_device(struct platform_device *pdev) · 2340 unmodified lines
2341 2341
2342 /* Start monitoring */2342 /* Start monitoring */
2343 it87_write_value(data, IT87_REG_CONFIG,2343 it87_write_value(data, IT87_REG_CONFIG,
2344 (it87_read_value(data, IT87_REG_CONFIG) & 0x36)2344 (it87_read_value(data, IT87_REG_CONFIG) & 0x3e)
2345 | (update_vbat ? 0x41 : 0x01));2345 | (update_vbat ? 0x41 : 0x01));
2346}2346}
2347 2347