Skip to content

Commit 3300fb4

Browse files
Jean DelvareJean Delvare
authored andcommitted
hwmon: (w83627ehf) Force initial bank selection
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> Cc: stable@vger.kernel.org
1 parent 3d70f8c commit 3300fb4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hwmon/w83627ehf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2083,6 +2083,7 @@ static int __devinit w83627ehf_probe(struct platform_device *pdev)
20832083
mutex_init(&data->lock);
20842084
mutex_init(&data->update_lock);
20852085
data->name = w83627ehf_device_names[sio_data->kind];
2086+
data->bank = 0xff; /* Force initial bank selection */
20862087
platform_set_drvdata(pdev, data);
20872088

20882089
/* 627EHG and 627EHF have 10 voltage inputs; 627DHG and 667HG have 9 */

0 commit comments

Comments
 (0)