Commit 7dcdbdeb authored by Guenter Roeck's avatar Guenter Roeck

hwmon: (nct6775) Fix fan6/pwm6 detection for NCT6792D

Per datasheet, AUXFANIN3 (fan6) and AUXFANOUT3 (pwm6) are only connected
if DSW_EN is false.
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent b2833f39
......@@ -3522,10 +3522,13 @@ nct6775_check_fan_inputs(struct nct6775_data *data)
switch (data->kind) {
case nct6791:
case nct6792:
fan6pin = cr2d & BIT(1);
pwm6pin = cr2d & BIT(0);
break;
case nct6792:
fan6pin = !dsw_en && (cr2d & BIT(1));
pwm6pin = !dsw_en && (cr2d & BIT(0));
break;
case nct6793:
case nct6795:
case nct6796:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment