Skip to content

RFC drivers/hwmon/pmbus: core extensions

Eddie James openbmc 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drivers/hwmon/pmbus: Use STATUS_WORD by default and do correct accessdrivers/hwmon/pmbus/pmbus_core.c+54 -150 replies
2/3drivers/hmwon/pmbus: store STATUS_WORD in status registersdrivers/hwmon/pmbus/pmbus_core.c+27 -100 replies
3/3drivers/hwmon/pmbus: Add sensor status to pmbus attributesdrivers/hwmon/pmbus/pmbus_core.c+51 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC linux dev-4.10 0/3] drivers/hwmon/pmbus: core extensions

From: "Edward A. James" <[email protected]>

This series adds some functionality to the pmbus core.

The first two patches are fixes to enable the use of the STATUS_WORD register which was completely unused in existing pmbus. This allows the use of more default alarm/fault attributes for default pmbus sensors.

The third patch adds "status" attributes to each class of hwmon sensor created by pmbus. For example, in1_status and temp1_status. These will display the associated raw status register (STATUS_INPUT and STATUS_TEMPERATURE). These will probably be essential for the UCD driver, and certainly very convenient for the power supply driver.

An alternative I considered was breaking all the status registers out into bits, but some bits seem to be device-dependent and therefore couldn't be named correctly or at all in the pmbus core. This would also really make the hwmon directory messy, unless you have a separate directory for that, either in the device directory or under the hwmon directory (not sure if that's even possible).

Edward A. James (3):
drivers/hwmon/pmbus: Use STATUS_WORD by default and do correct access drivers/hmwon/pmbus: store STATUS_WORD in status registers drivers/hwmon/pmbus: Add sensor status to pmbus attributes

 drivers/hwmon/pmbus/pmbus_core.c | 153 +++++++++++++++++++++++++++++++++------
 1 file changed, 130 insertions(+), 23 deletions(-)
Signature · 1 line
1.8.3.1