Skip to content

Commit 544177f

Browse files
jbrun3tgroeck
authored andcommitted
hwmon: (pmbus) add documentation for existing flags
PMBUS_NO_WRITE_PROTECT and PMBUS_USE_COEFFICIENTS_CMD flags have been added to pmbus, but the corresponding documentation was not updated. Update the documentation before adding new flags Signed-off-by: Jerome Brunet <[email protected]> Message-ID: <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
1 parent 52172ad commit 544177f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Documentation/hwmon/pmbus-core.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,10 @@ currently provides a flags field with four bits used::
308308

309309
#define PMBUS_READ_STATUS_AFTER_FAILED_CHECK BIT(3)
310310

311+
#define PMBUS_NO_WRITE_PROTECT BIT(4)
312+
313+
#define PMBUS_USE_COEFFICIENTS_CMD BIT(5)
314+
311315
struct pmbus_platform_data {
312316
u32 flags; /* Device specific flags */
313317

@@ -358,3 +362,14 @@ This can be done by reading a known register. By setting this flag the
358362
driver will try to read the STATUS register after each failed
359363
register check. This read may fail, but it will put the chip into a
360364
known state.
365+
366+
PMBUS_NO_WRITE_PROTECT
367+
368+
Some PMBus chips respond with invalid data when reading the WRITE_PROTECT
369+
register. For such chips, this flag should be set so that the PMBus core
370+
driver doesn't use the WRITE_PROTECT command to determine its behavior.
371+
372+
PMBUS_USE_COEFFICIENTS_CMD
373+
374+
When this flag is set the PMBus core driver will use the COEFFICIENTS
375+
register to initialize the coefficients for the direct mode format.

0 commit comments

Comments
 (0)