diff options
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.patch | 37 |
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 @@ | |||
1 | From 9b12ab6f8a8a5859e0165b3510dbecae16ca98e3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jean Delvare <khali@linux-fr.org> | ||
3 | Date: Thu, 12 Jul 2012 22:47:37 +0200 | ||
4 | Subject: [PATCH 044/109] hwmon: (it87) Preserve configuration register bits | ||
5 | on init | ||
6 | |||
7 | commit 41002f8dd5938d5ad1d008ce5bfdbfe47fa7b4e8 upstream. | ||
8 | |||
9 | We were accidentally losing one bit in the configuration register on | ||
10 | device initialization. It was reported to freeze one specific system | ||
11 | right away. Properly preserve all bits we don't explicitly want to | ||
12 | change in order to prevent that. | ||
13 | |||
14 | Reported-by: Stevie Trujillo <stevie.trujillo@gmail.com> | ||
15 | Signed-off-by: Jean Delvare <khali@linux-fr.org> | ||
16 | Reviewed-by: Guenter Roeck <linux@roeck-us.net> | ||
17 | Signed-off-by: Ben Hutchings <ben@decadent.org.uk> | ||
18 | --- | ||
19 | drivers/hwmon/it87.c | 2 +- | ||
20 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
21 | |||
22 | diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c | ||
23 | index 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 | -- | ||
36 | 1.7.7.6 | ||
37 | |||