summaryrefslogtreecommitdiff
path: root/Documentation/hwmon
diff options
context:
space:
mode:
authorRadu Sabau <radu.sabau@analog.com>2024-05-31 11:46:44 +0300
committerGuenter Roeck <linux@roeck-us.net>2024-06-03 20:26:31 -0700
commit5124d9acf3af50bcc6d0958db4fecb3c2f13f8ed (patch)
tree7274a80af4a20ab0a17bef9d3b2f80020f36266f /Documentation/hwmon
parentfcbb583f33af99e260aca2b5893b21ccf1021285 (diff)
downloadlwn-5124d9acf3af50bcc6d0958db4fecb3c2f13f8ed.tar.gz
lwn-5124d9acf3af50bcc6d0958db4fecb3c2f13f8ed.zip
hwmon: (max31827) Add PEC support
Add PEC support using the hwmon core infrastructure. Signed-off-by: Radu Sabau <radu.sabau@analog.com> Reviewed-by: Nuno Sa <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20240531084645.12935-2-radu.sabau@analog.com [groeck: Adjusted subject; simplified description] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/hwmon')
-rw-r--r--Documentation/hwmon/max31827.rst13
1 files changed, 10 insertions, 3 deletions
diff --git a/Documentation/hwmon/max31827.rst b/Documentation/hwmon/max31827.rst
index 44ab9dc064cb..9c11a9518c67 100644
--- a/Documentation/hwmon/max31827.rst
+++ b/Documentation/hwmon/max31827.rst
@@ -131,7 +131,14 @@ The Fault Queue bits select how many consecutive temperature faults must occur
before overtemperature or undertemperature faults are indicated in the
corresponding status bits.
-Notes
------
+PEC Support
+-----------
+
+When reading a register value, the PEC byte is computed and sent by the chip.
+
+PEC on word data transaction respresents a signifcant increase in bandwitdh
+usage (+33% for both write and reads) in normal conditions.
-PEC is not implemented.
+Since this operation implies there will be an extra delay to each
+transaction, PEC can be disabled or enabled through sysfs.
+Just write 1 to the "pec" file for enabling PEC and 0 for disabling it.