From patchwork Thu Dec 6 03:24:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3.5.y.z, extended, stable] Patch "hwmon: (w83627ehf) Force initial bank selection" has been added to staging queue Date: Wed, 05 Dec 2012 17:24:00 -0000 From: Herton Ronaldo Krzesinski X-Patchwork-Id: 204107 Message-Id: <1354764240-28771-1-git-send-email-herton.krzesinski@canonical.com> To: Jean Delvare Cc: kernel-team@lists.ubuntu.com, Guenter Roeck This is a note to let you know that I have just added a patch titled hwmon: (w83627ehf) Force initial bank selection to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree which can be found at: http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.5.y-queue If you, or anyone else, feels it should not be added to this tree, please reply to this email. For more information about the 3.5.y.z tree, see https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable Thanks. -Herton ------ >From 05b6821cfb6566d6f7ecad018330c4821e76c44c Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Mon, 5 Nov 2012 21:54:39 +0100 Subject: [PATCH] hwmon: (w83627ehf) Force initial bank selection X-Extended-Stable: 3.5 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: Herton Ronaldo Krzesinski --- drivers/hwmon/w83627ehf.c | 1 + 1 file changed, 1 insertion(+) -- 1.7.9.5 diff --git a/drivers/hwmon/w83627ehf.c b/drivers/hwmon/w83627ehf.c index 54922ed..88effda 100644 --- a/drivers/hwmon/w83627ehf.c +++ b/drivers/hwmon/w83627ehf.c @@ -2082,6 +2082,7 @@ static int __devinit w83627ehf_probe(struct platform_device *pdev) 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 */