]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
hwmon: (w83627hf) don't assume bank 0
authorJean Delvare <khali@linux-fr.org>
Wed, 10 Oct 2007 14:30:23 +0000 (16:30 +0200)
committerMark M. Hoffman <mhoffman@lightlink.com>
Sun, 14 Oct 2007 00:37:19 +0000 (20:37 -0400)
commitd58df9cd788e6fb4962e1c8d5ba7b8b95d639a44
tree90a4d4b4ed5dc30f0e186a835f430bd8be4fb259
parentc09c5184a26158da32801e89d5849d774605f0dd
hwmon: (w83627hf) don't assume bank 0

The bank switching code assumes that the bank selector is set to 0
when the driver is loaded. This might not be the case. This is exactly
the same bug as was fixed in the w83627ehf driver two months ago:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0956895aa6f8dc6a33210967252fd7787652537d

In practice, this bug was causing the sensor thermal types to be
improperly reported for my W83627THF the first time I was loading the
w83627hf driver. From the driver history, I'd say that it has been
broken since September 2005 (when we stopped resetting the chip by
default at driver load.)

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
drivers/hwmon/w83627hf.c