aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Jonsson <jonas@ludd.ltu.se>2010-09-17 17:24:13 +0200
committerJean Delvare <khali@linux-fr.org>2010-09-17 17:24:13 +0200
commit022b75a3df2b5aeeb70c5d51bc1fe55722fdd759 (patch)
tree3b460eeb0268f51b17b16e8d7b561e32ea764483
parentf17c811d1433aa1966f9c5a744841427e9a97ecf (diff)
downloadlinux-yocto-4.8-022b75a3df2b5aeeb70c5d51bc1fe55722fdd759.tar.gz
linux-yocto-4.8-022b75a3df2b5aeeb70c5d51bc1fe55722fdd759.tar.bz2
linux-yocto-4.8-022b75a3df2b5aeeb70c5d51bc1fe55722fdd759.zip
hwmon: (w83627ehf) Use proper exit sequence
According to the datasheet for Winbond W83627DHG the proper way to exit the Extended Function Mode is to write 0xaa to the EFER(0x2e or 0x4e). Signed-off-by: Jonas Jonsson <jonas@ludd.ltu.se> Signed-off-by: Jean Delvare <khali@linux-fr.org>
-rw-r--r--drivers/hwmon/w83627ehf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/w83627ehf.c b/drivers/hwmon/w83627ehf.c
index e96e69dd36fb..072c58008a63 100644
--- a/drivers/hwmon/w83627ehf.c
+++ b/drivers/hwmon/w83627ehf.c
@@ -127,6 +127,7 @@ superio_enter(int ioreg)
static inline void
superio_exit(int ioreg)
{
+ outb(0xaa, ioreg);
outb(0x02, ioreg);
outb(0x02, ioreg + 1);
}