hwmon: Add unspecified temperature
Quoted 27 lines · Guenter Roeck
Some recent temperature sensor chips provide thresholds which are not associated with lower or upper limits. The use of those thresholds is application specific.
Provide sysfs ABI attributes to support such thresholds.
Signed-off-by Guenter Roeck <[email protected]>--- Documentation/hwmon/sysfs-interface | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-)Documentation/hwmon/sysfs-interface +9
-0@@ -394,6 +394,22 @@ temp_reset_history Reset temp_lowest and temp_highest for all sensors WO +temp[1-*]_threshold[1-*] + Unspecified threshold. Use if the chip provides temperature + thresholds which are not associated with lower or upper limits. + RW + Unit: millidegree Celsius + +temp[1-*]_threshold[1-*]_triggered + Channel trigger information. + 0: Temperature did not cross threshold.
Documentation/hwmon/sysfs-interface temp_reset_history · line 415
Quoted 10 lines
Documentation/hwmon/sysfs-interface +7
-0+ 1: Temperature crossed threshold in either direction. + RW + Contrary to regular alarm flags which clear themselves + automatically when read, this one sticks until cleared by + the user. This is done by writing 0 to the file. Writing + other values is unsupported. + Some chips measure temperature using external thermistors and an ADC, and report the temperature measurement as a voltage. Converting this voltage back to a temperature (or the other way around for limits) requires
Looks good, assuming that we actually want to implement this in hwmon drivers and not somewhere else in the kernel. See my reply to patch 2/2.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors