From 59555f0cdf113a00bdbe8e1191dc93116e76ea6d Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 16 May 2007 08:45:03 +0000 Subject: [PATCH] Fix Super-I/O exit sequence for Winbond/Fintek chips. isadump and friends now use the same sequence as sensors-detect uses. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4405 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + prog/dump/superio.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGES b/CHANGES index 64ea103b..a989d2e9 100644 --- a/CHANGES +++ b/CHANGES @@ -10,6 +10,7 @@ SVN HEAD Man page sensors.conf.5: Update the chip statement section Module i2c-nforce2: Add nForce MCP61, MCP65 support (2.6 backport) Program isadump: Detect when address bit 7 is a busy flag + Fix Super-I/O exit sequence for Winbond/Fintek chips Program pwmconfig: Use smaller steps for low PWM values Program rrd: Support non-i2c devices (hwmon class) Add missing shell declarations diff --git a/prog/dump/superio.c b/prog/dump/superio.c index 7a6b3efa..ac092635 100644 --- a/prog/dump/superio.c +++ b/prog/dump/superio.c @@ -66,6 +66,10 @@ void superio_write_key(int addrreg, unsigned char *key) void superio_reset(int addrreg, int datareg) { + /* Some chips (SMSC, Winbond) want this */ + outb(0xaa, addrreg); + + /* Return to "Wait For Key" state (PNP-ISA spec) */ outb(0x02, addrreg); outb(0x02, datareg); }