projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2833f3
)
hwmon: (nct6775) Fix fan6/pwm6 detection for NCT6792D
author
Guenter Roeck
<linux@roeck-us.net>
Tue, 18 Sep 2018 17:52:55 +0000
(10:52 -0700)
committer
Guenter Roeck
<linux@roeck-us.net>
Thu, 11 Oct 2018 03:37:13 +0000
(20:37 -0700)
Per datasheet, AUXFANIN3 (fan6) and AUXFANOUT3 (pwm6) are only connected
if DSW_EN is false.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct6775.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/nct6775.c
b/drivers/hwmon/nct6775.c
index
0ad4bf0
..
6e11df6
100644
(file)
--- a/
drivers/hwmon/nct6775.c
+++ b/
drivers/hwmon/nct6775.c
@@
-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: