Skip to content

Commit 991b9eb

Browse files
committed
Merge tag 'hwmon-for-v5.0-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
Pull hwmon fix from Guenter Roeck: "Fix fan detection for NCT6793D" * tag 'hwmon-for-v5.0-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: hwmon: (nct6775) Fix fan6 detection for NCT6793D
2 parents 57902dc + 2a2ec4a commit 991b9eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/hwmon/nct6775.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3594,7 +3594,8 @@ nct6775_check_fan_inputs(struct nct6775_data *data)
35943594
fan5pin |= cr1b & BIT(5);
35953595
fan5pin |= creb & BIT(5);
35963596

3597-
fan6pin = creb & BIT(3);
3597+
fan6pin = !dsw_en && (cr2d & BIT(1));
3598+
fan6pin |= creb & BIT(3);
35983599

35993600
pwm5pin |= cr2d & BIT(7);
36003601
pwm5pin |= (creb & BIT(4)) && !(cr2a & BIT(0));

0 commit comments

Comments
 (0)