From: Guenter Roeck Date: Fri, 13 Feb 2015 04:17:32 +0000 (-0800) Subject: Revert "Enable fan 3-5 on ASRock Z77 Pro4-M" X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9617b798d36e1ffa64e2006ffedb330956f228d5;p=groeck-nct6775 Revert "Enable fan 3-5 on ASRock Z77 Pro4-M" This reverts commit ad00077d680fba0530befe9e9ebb94ea090ce9ed. --- diff --git a/nct6775.c b/nct6775.c index 198fc46..0e81050 100644 --- a/nct6775.c +++ b/nct6775.c @@ -57,7 +57,6 @@ #include #include #include -#include #include #include "lm75.h" #include "compat.h" @@ -3216,27 +3215,10 @@ nct6775_check_fan_inputs(struct nct6775_data *data) pwm6pin = false; } else if (data->kind == nct6776) { bool gpok = superio_inb(sioreg, 0x27) & 0x80; - const char *board_vendor, *board_name; - - board_vendor = dmi_get_system_info(DMI_BOARD_VENDOR); - board_name = dmi_get_system_info(DMI_BOARD_NAME); superio_select(sioreg, NCT6775_LD_HWM); regval = superio_inb(sioreg, SIO_REG_ENABLE); - /* - * ASRock Z77 Pro4-M is known to not enable fan 3..5 - * if booted in UEFI Ultra-FastBoot mode. - */ - if (!strcmp(board_vendor, "ASRock") && - !strcmp(board_name, "Z77 Pro4-M")) { - if ((regval & 0xe0) != 0xe0) { - pr_warn("Enabling Fans 3-5\n"); - regval |= 0xe0; - superio_outb(sioreg, SIO_REG_ENABLE, regval); - } - } - data->sio_enable = regval; if (regval & 0x80)