summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0044-hwmon-it87-Preserve-configuration-register-bits-on-i.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0044-hwmon-it87-Preserve-configuration-register-bits-on-i.patch')
-rw-r--r--recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0044-hwmon-it87-Preserve-configuration-register-bits-on-i.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0044-hwmon-it87-Preserve-configuration-register-bits-on-i.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0044-hwmon-it87-Preserve-configuration-register-bits-on-i.patch
new file mode 100644
index 00000000..f7d45cc3
--- /dev/null
+++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0044-hwmon-it87-Preserve-configuration-register-bits-on-i.patch
@@ -0,0 +1,37 @@
1From 9b12ab6f8a8a5859e0165b3510dbecae16ca98e3 Mon Sep 17 00:00:00 2001
2From: Jean Delvare <khali@linux-fr.org>
3Date: Thu, 12 Jul 2012 22:47:37 +0200
4Subject: [PATCH 044/109] hwmon: (it87) Preserve configuration register bits
5 on init
6
7commit 41002f8dd5938d5ad1d008ce5bfdbfe47fa7b4e8 upstream.
8
9We were accidentally losing one bit in the configuration register on
10device initialization. It was reported to freeze one specific system
11right away. Properly preserve all bits we don't explicitly want to
12change in order to prevent that.
13
14Reported-by: Stevie Trujillo <stevie.trujillo@gmail.com>
15Signed-off-by: Jean Delvare <khali@linux-fr.org>
16Reviewed-by: Guenter Roeck <linux@roeck-us.net>
17Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
18---
19 drivers/hwmon/it87.c | 2 +-
20 1 files changed, 1 insertions(+), 1 deletions(-)
21
22diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c
23index d912649..1ba7af2 100644
24--- a/drivers/hwmon/it87.c
25+++ b/drivers/hwmon/it87.c
26@@ -2086,7 +2086,7 @@ static void __devinit it87_init_device(struct platform_device *pdev)
27
28 /* Start monitoring */
29 it87_write_value(data, IT87_REG_CONFIG,
30- (it87_read_value(data, IT87_REG_CONFIG) & 0x36)
31+ (it87_read_value(data, IT87_REG_CONFIG) & 0x3e)
32 | (update_vbat ? 0x41 : 0x01));
33 }
34
35--
361.7.7.6
37