From: Jean Delvare Date: Wed, 11 Jul 2012 20:11:30 +0000 Subject: [lm-sensors] [PATCH] hwmon: (it87) Preserve configuration register bits on init Message-Id: <20120711221130.6d8bfa6e@endymion.delvare> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lm-sensors@vger.kernel.org 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 Cc: stable@vger.kernel.org Signed-off-by: Jean Delvare --- drivers/hwmon/it87.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-3.5-rc6.orig/drivers/hwmon/it87.c 2012-06-05 16:22:59.000000000 +0200 +++ linux-3.5-rc6/drivers/hwmon/it87.c 2012-07-11 22:04:23.476958967 +0200 @@ -2341,7 +2341,7 @@ static void __devinit it87_init_device(s /* Start monitoring */ it87_write_value(data, IT87_REG_CONFIG, - (it87_read_value(data, IT87_REG_CONFIG) & 0x36) + (it87_read_value(data, IT87_REG_CONFIG) & 0x3e) | (update_vbat ? 0x41 : 0x01)); } -- Jean Delvare _______________________________________________ lm-sensors mailing list lm-sensors@lm-sensors.org http://lists.lm-sensors.org/mailman/listinfo/lm-sensors