hwmon: (it87) Fix fan tachometer reading in
Subsystems (2)
PATCH 1/1 hwmon: (it87) Fix fan tachometer reading in
The IT8712F v0.9.1 datasheet applies to revisions >= 0x8 (J). The driver was incorrectly attempting to enable 16-bit fan readings on rev 0x7 (I) which led to incorrect RPM values.
--- drivers/hwmon/it87.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
From b0604f42436514362f6b58df57cefd004e963902 Mon Sep 17 00:00:00 2001
From: Andrew Paprocki <[email protected]>
Date: Tue, 16 Sep 2008 23:47:19 -0400
Subject: [PATCH] hwmon: (it87) Fix fan tachometer reading in IT8712F rev 0x7 (I)
The IT8712F v0.9.1 datasheet applies to revisions >= 0x8 (J). The driver was incorrectly attempting to enable 16-bit fan readings on rev 0x7 (I) which led to incorrect RPM values.
--- drivers/hwmon/it87.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/hwmon/it87.c +2 -2
@@ -273,10 +273,10 @@ struct it87_data {static inline int has_16bit_fans (const struct it87_data *data) {/* IT8705F Datasheet 0.4.1, 3h == Version G. -IT8712F Datasheet 0.9.1, section 8.3.5 indicates 7h == Version I. +IT8712F Datasheet 0.9.1, section 8.3.5 indicates 8h == Version J. These are the first revisions with 16bit tachometer support. */ return (data->type == it87 && data->revision >=0x03 ) - || (data->type == it8712 && data->revision >=0x07 ) + || (data->type == it8712 && data->revision >=0x08 ) || data->type == it8716 || data->type == it8718; }
Signature · 1 line
1.5.6
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Re: [lm-sensors] [PATCH] hwmon: (it87) Fix fan tachometer reading
Quoted 9 lines · Andrew Paprocki
The IT8712F v0.9.1 datasheet applies to revisions >=
0x8(J). The driver was incorrectly attempting to enable 16-bit fan readings on rev0x7(I) which led to incorrect RPM values.Signed-off-by Andrew Paprocki <[email protected]>Tested-by John Gumb <[email protected]>--- drivers/hwmon/it87.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Patch added to my hwmon tree, thank you. I'll send it to Linus shortly.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors