]> git.sur5r.net Git - groeck-it87/commitdiff
IT8607 does not support the 1st fan, only fan2-3
authorGuenter Roeck <linux@roeck-us.net>
Sun, 23 Jul 2017 14:29:38 +0000 (07:29 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 23 Jul 2017 14:29:38 +0000 (07:29 -0700)
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
it87.c

diff --git a/it87.c b/it87.c
index 04514b24ea6be25132795533da0ac78e4601eb11..8fb14b9d523998b743831ca09c560af85f0a1d74 100644 (file)
--- a/it87.c
+++ b/it87.c
@@ -3038,9 +3038,16 @@ static int __init it87_find(int sioaddr, unsigned short *address,
                if (reg29 & BIT(2))
                        sio_data->skip_fan |= BIT(1);
 
-               if (sio_data->type == it8603) {
+               switch (sio_data->type) {
+               case it8603:
                        sio_data->skip_in |= BIT(5); /* No VIN5 */
                        sio_data->skip_in |= BIT(6); /* No VIN6 */
+                       break;
+               case it8607:
+                       sio_data->skip_pwm |= BIT(0);/* No fan1 */
+                       sio_data->skip_fan |= BIT(0);
+               default:
+                       break;
                }
 
                sio_data->beep_pin = superio_inb(sioaddr,