From 4d29188e4fc9066866304259f6584caa4d3dcea1 Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Sun, 24 Sep 2017 08:10:16 -0700 Subject: [PATCH] Fix FAN_TAC5 detection for IT8665E FAN_TAC5 is connected if 26h[4]=0. Signed-off-by: Guenter Roeck --- it87.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); } -- 2.39.2