浏览代码

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>
Jonas Jonsson 14 年之前
父节点
当前提交
022b75a3df
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/hwmon/w83627ehf.c

+ 1 - 0
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);
 }