]> git.baikalelectronics.ru Git - kernel.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)
commitc10d0ac1256e487cce242fce5a7f329771b6a893
tree90a4d4b4ed5dc30f0e186a835f430bd8be4fb259
parent585ba8b87c3db6b09e3a17211f7a51881c7fc009
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=9c0eaca2eb7e4afa5dbefc660ed95bd8ebc28e1f

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