Skip to content

Commit

Permalink
hwmon: (nct6775) Fix fan6/pwm6 detection for NCT6792D
Browse files Browse the repository at this point in the history
Per datasheet, AUXFANIN3 (fan6) and AUXFANOUT3 (pwm6) are only connected
if DSW_EN is false.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
  • Loading branch information
Guenter Roeck committed Oct 11, 2018
1 parent b2833f3 commit 7dcdbde
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/hwmon/nct6775.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7dcdbde

Please sign in to comment.