]> git.sur5r.net Git - groeck-it87/commitdiff
Fix superio enable sequence for SIO address 0x4e
authorGuenter Roeck <linux@roeck-us.net>
Sun, 29 Mar 2015 23:33:17 +0000 (16:33 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 30 Mar 2015 06:24:02 +0000 (23:24 -0700)
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
it87.c

diff --git a/it87.c b/it87.c
index 54b1bde52ba562b69dce77121c0e57662defcc71..5250f2859e5e3c45984add3b6446338f73e276c0 100644 (file)
--- a/it87.c
+++ b/it87.c
@@ -130,7 +130,7 @@ static inline int superio_enter(int ioreg)
        outb(0x87, ioreg);
        outb(0x01, ioreg);
        outb(0x55, ioreg);
-       outb(0x55, ioreg);
+       outb(ioreg == REG_4E ? 0xaa : 0x55, ioreg);
        return 0;
 }