From: Jonas Jonsson Date: Fri, 17 Sep 2010 15:24:13 +0000 (+0200) Subject: hwmon: (w83627ehf) Use proper exit sequence X-Git-Tag: upstream/snapshot3+hdmi~12978^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=022b75a3df2b5aeeb70c5d51bc1fe55722fdd759;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Jean Delvare --- diff --git a/drivers/hwmon/w83627ehf.c b/drivers/hwmon/w83627ehf.c index e96e69d..072c580 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); }