]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.6-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Nov 2012 14:54:36 +0000 (15:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Nov 2012 14:54:36 +0000 (15:54 +0100)
added patches:
hwmon-w83627ehf-force-initial-bank-selection.patch

queue-3.6/hwmon-w83627ehf-force-initial-bank-selection.patch [new file with mode: 0644]
queue-3.6/series

diff --git a/queue-3.6/hwmon-w83627ehf-force-initial-bank-selection.patch b/queue-3.6/hwmon-w83627ehf-force-initial-bank-selection.patch
new file mode 100644 (file)
index 0000000..b5118f5
--- /dev/null
@@ -0,0 +1,31 @@
+From 3300fb4f88688029fff8dfb9ec0734f6e4cba3e7 Mon Sep 17 00:00:00 2001
+From: Jean Delvare <khali@linux-fr.org>
+Date: Mon, 5 Nov 2012 21:54:39 +0100
+Subject: hwmon: (w83627ehf) Force initial bank selection
+
+From: Jean Delvare <khali@linux-fr.org>
+
+commit 3300fb4f88688029fff8dfb9ec0734f6e4cba3e7 upstream.
+
+Don't assume bank 0 is selected at device probe time. This may not be
+the case. Force bank selection at first register access to guarantee
+that we read the right registers upon driver loading.
+
+Signed-off-by: Jean Delvare <khali@linux-fr.org>
+Reviewed-by: Guenter Roeck <linux@roeck-us.net>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/hwmon/w83627ehf.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/hwmon/w83627ehf.c
++++ b/drivers/hwmon/w83627ehf.c
+@@ -2083,6 +2083,7 @@ static int __devinit w83627ehf_probe(str
+       mutex_init(&data->lock);
+       mutex_init(&data->update_lock);
+       data->name = w83627ehf_device_names[sio_data->kind];
++      data->bank = 0xff;              /* Force initial bank selection */
+       platform_set_drvdata(pdev, data);
+       /* 627EHG and 627EHF have 10 voltage inputs; 627DHG and 667HG have 9 */
index ae73b16a1611c9e36dc693147dae1eace17dbb3a..623991e6dfaaa2c47f3c27210193fbdde22075e5 100644 (file)
@@ -33,3 +33,4 @@ nfs-fix-bug-in-legacy-dns-resolver.patch
 batman-adv-fix-broadcast-packet-crc-calculation.patch
 drm-restore-open_count-if-drm_setup-fails.patch
 drm-set-dev_mapping-before-calling-drm_open_helper.patch
+hwmon-w83627ehf-force-initial-bank-selection.patch