From: Guenter Roeck Date: Sun, 24 Sep 2017 15:10:16 +0000 (-0700) Subject: Fix FAN_TAC5 detection for IT8665E X-Git-Url: https://git.sur5r.net/?p=groeck-it87;a=commitdiff_plain;h=4d29188e4fc9066866304259f6584caa4d3dcea1 Fix FAN_TAC5 detection for IT8665E FAN_TAC5 is connected if 26h[4]=0. Signed-off-by: Guenter Roeck --- diff --git a/it87.c b/it87.c index 5943019..87ee088 100644 --- a/it87.c +++ b/it87.c @@ -3237,6 +3237,10 @@ static int __init it87_find(int sioaddr, unsigned short *address, /* Check for pwm2, fan2 */ if (reg29 & BIT(1)) sio_data->skip_pwm |= BIT(1); + /* + * Note: Table 6-1 in datasheet claims that FAN_TAC2 + * would be enabled with 29h[2]=0. + */ if (reg2d & BIT(4)) sio_data->skip_fan |= BIT(1); @@ -3267,7 +3271,7 @@ static int __init it87_find(int sioaddr, unsigned short *address, sio_data->skip_fan |= BIT(3); if (reg26 & BIT(5)) sio_data->skip_pwm |= BIT(4); - if (!(reg26 & BIT(4))) + if (reg26 & BIT(4)) sio_data->skip_fan |= BIT(4); }