From: Greg Kroah-Hartman Date: Wed, 7 Nov 2012 14:53:48 +0000 (+0100) Subject: 3.0-stable patches X-Git-Tag: v3.0.52~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f51e971ef5c958a371564179c48437349664883f;p=thirdparty%2Fkernel%2Fstable-queue.git 3.0-stable patches added patches: hwmon-w83627ehf-force-initial-bank-selection.patch --- diff --git a/queue-3.0/hwmon-w83627ehf-force-initial-bank-selection.patch b/queue-3.0/hwmon-w83627ehf-force-initial-bank-selection.patch new file mode 100644 index 00000000000..db5550717ed --- /dev/null +++ b/queue-3.0/hwmon-w83627ehf-force-initial-bank-selection.patch @@ -0,0 +1,31 @@ +From 3300fb4f88688029fff8dfb9ec0734f6e4cba3e7 Mon Sep 17 00:00:00 2001 +From: Jean Delvare +Date: Mon, 5 Nov 2012 21:54:39 +0100 +Subject: hwmon: (w83627ehf) Force initial bank selection + +From: Jean Delvare + +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 +Reviewed-by: Guenter Roeck +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/hwmon/w83627ehf.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/drivers/hwmon/w83627ehf.c ++++ b/drivers/hwmon/w83627ehf.c +@@ -1834,6 +1834,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 */ diff --git a/queue-3.0/series b/queue-3.0/series index 2eb8ffcd3f9..c97700bdce3 100644 --- a/queue-3.0/series +++ b/queue-3.0/series @@ -14,3 +14,4 @@ nfsd-add-get_uint-for-u32-s.patch nfs-fix-bug-in-legacy-dns-resolver.patch nfs-fix-oopses-in-nfs_lookup_revalidate-and-nfs4_lookup_revalidate.patch drm-restore-open_count-if-drm_setup-fails.patch +hwmon-w83627ehf-force-initial-bank-selection.patch